Hi all
I have the following environments:
- dev
- stage
- prod
Each environment will have different configuration and in akka documentation it says, that it is possible to include files.
Including files
Sometimes it can be useful to include another configuration file, for example if you have one application.conf with all environment independent settings and then override some settings for specific environments.Specifying system property with
-Dconfig.resource=/dev.conf
will load thedev.conf
file, which includes theapplication.conf
include "application"
akka { loglevel = “DEBUG” }
My project environment looks as the following:
When I do unit test, I would like to use dev.conf
configuration file and I have to setup somehow, that it will take the dev.conf
file.
As the doc says above:
Specifying system property with
-Dconfig.resource=/dev.conf
It is not clear to me, how to do it. Where do I have to pass it?
The content of my dev.conf looks as the following:
include "application"
akka {loglevel = "DEBUG"}
The question is, how to make sure, when the unit test is started, that the dev.conf
file is going use?
Thanks