Question

I'm trying to use a custom configuration file to run the tests, but the following command is not working (it still uses application.conf):

play -Dconfig.file=/fullpath/conf/dev.conf test

Is there any alternative solution ?

Was it helpful?

Solution

You can try to use the play id to set an id for your play instance. Based on this, you can access environment specific settings in your application.conf.

For instance:

%dev.application.mode=dev
%prod.application.mode=prod

%dev.application.log=DEBUG
%prod.application.log=WARN
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top