Can I have 2 HOCON files for the based on the envi...
# ktor
v
Can I have 2 HOCON files for the based on the environment in which I am running(locally vs on Google cloud)? If so how do I tell the system which one to choose?
c
There are options. First of all, you can use HOCON include syntax with some kind substitution. See https://github.com/lightbend/config/blob/master/HOCON.md#includes
When running using EngineMain you may specify
-config
option to specify path to application.conf file.
When deploying into a servlet container, you may specify servlet init parameter
ktor.config