Join Slack
Powered by
Can I have 2 HOCON files for the based on the envi...
# ktor
v
voben
12/10/2019, 10:50 PM
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
cy
12/11/2019, 9:10 AM
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
cy
12/11/2019, 9:11 AM
When running using EngineMain you may specify
-config
option to specify path to application.conf file.
cy
12/11/2019, 9:11 AM
When deploying into a servlet container, you may specify servlet init parameter
ktor.config
10
Views
Open in Slack
Previous
Next