Reputation: 858
I am building a web application with Play 2.2 for Scala. I have one issue with the auto-reload feature:
I am adding some settings when running the server like this play "run -Dtwitter.consumerSecret=mykey -Dtwitter.tokenSecret=mysecret"
. When the application re-compile on change, it does not take into account the parameters. I have to re-start the server. How to tell sbt to take into account the settings on reload.
Thanks for you help.
Upvotes: 1
Views: 1571
Reputation: 11244
We add the following line to the bottom our application.conf
include "overrides.conf"
We make sure it's in the ignore file of our version control system.
The overrides.conf
file allows us to tweak (and add) settings that should remain local.
Note that the include
statement is ignored if the file can not be found.
Upvotes: 2