Pregunta

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 ?

¿Fue útil?

Solución

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
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top