How to use different application.conf in play commandline?
-
20-12-2019 - |
Question
play -Dconfig.file=conf/dev.conf
not work, How to use different application.conf in play commandline?
play-2.2.1
Solution
-Dconfig.file
requires full path to the file which is not packaged into distribution i.e.:
/home/sato/app-configs/dev.conf
In your case you should use rather: -Dconfig.resource=dev.conf
to use additional config stored in conf
folder.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow