Skip to content
Szymon Chojnacki edited this page Feb 5, 2016 · 5 revisions

Modify configuration

To adjust the application to your needs look at:

/src/main/resource/application.yml

You may change e.g. logging file name, deployment path or port (currently set to /pilincs and 8080). Or select Panorama folders that are relevant to your needs. After changing properties file you need to build sources again.

If you wish to overwrite one of the values in the configuration file without recompiling the project you may do it when starting piLINCS from command line. For example to change the name of the logging file from pilincs-logs.txt to my-logs.txt start piLINCS with:

java -jar build/libs/*.jar --logging.file=my-logs.txt

You may also run a profile that is different from default. For example to run mysql profile type:

java -jar build/libs/*.jar --spring.profiles.active=mysql 

This profile requires:

  • MySQL server running
  • Existence of a database named pilincs (all tables are being dropped at startup)
  • A user account with credentials as in Yaml file

Preview of the configuration file is here:
https://github.com/sajmmon/Pilincs/blob/master/src/main/resources/application.yml