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

dany giguere

02/21/2022, 11:27 PM
How does it work for the application.conf locally vs in production. Do you create a application.conf.example, commit it on the repo but then add the application.conf in the .gitignore ? because the values in the fil will be different in production
Copy code
ktor {
    development = true
    deployment {
        port = 8080
        port = ${?PORT}
    }...
a

Aleksei Tirman [JB]

02/22/2022, 11:12 AM
You can load different configs based on the value of some environment variable, e.g.
STAGE
, and/or have a single config that uses environment variables to provide values for keys.
3 Views