Khurram Malik
11/03/2021, 1:26 PMantonarhipov
11/03/2021, 1:54 PMdeployment {
port = 8080
port = ${?PORT}
}
The PORT variable comes from the environment. So you could launch it like this:
$ export PORT=9000; java -jar your-ktor-app.jar
So you can create a similar configuration part for the database parameters and set those using the environment variables.