https://kotlinlang.org logo
#ktor
Title
# ktor
s

Sean Proctor

04/02/2024, 9:04 PM
Is it possible to conditionally specify configuration values? Or to conditionally load a second configuration file? Basically, I'd like to choose a set of parameter when running in production/development.
a

Aleksei Tirman [JB]

04/03/2024, 6:35 AM
You can conditionally load the configuration file using the -config option. Also, the configuration supports environment variables which could have different values bases on the environment.