質問

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 ?

役に立ちましたか?

解決

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
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top