How I can setup different configuration for development and production mode in Play 2 application?
I've try to use JVM arguments on application start in development mode like this:
play "run -Dconfig.resource=dev.conf"
or from Play console:
run -Dconfig.resource=dev.conf
but it did not work.
That should work:
play -Dconfig.resource=dev.conf "run"
Anyway I had some problems with -Dconfig.resource
so I'm using -Dconfig.file
instead
play -Dconfig.file=/full/path/to/your/project_folder/conf/alt_conf.conf "run"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With