Tak Wai Wang
10/01/2025, 1:26 PMgradlew installDist . The Ktor application will not be able to read the environment variable from the cloud system. But if we build the Ktor application with fatJar , then the application can read the env variables.
ENVIRONMENT = LOCAL
ENVIRONMENT = ${?APPLICATION_ENV}
The above example from a HOCON file, if the cloud provide a APPLICATION_ENV, then the Ktor config can not read this property.Aleksei Tirman [JB]
10/02/2025, 6:35 AMSystem.getenv method to see if the problem is with Ktor?Tak Wai Wang
10/02/2025, 7:01 AM