Robert Jaros
11/20/2024, 10:18 PMcommandLineEnvironment
function in Ktor 3 and there is nothing about it in the migration guide. How to migrate this configuration to Ktor 3?
https://github.com/rjaros/kilua-dev/blob/main/src/jvmMain/kotlin/website/Main.ktRobert Jaros
11/20/2024, 10:27 PMembeddedServer(CIO, environment = CommandLineConfig(args).environment) {
install(Compression)
initSsr()
}.start(wait = true)
but it doesn't seem to workRobert Jaros
11/20/2024, 10:29 PM-config=application.conf
command line parameterRobert Jaros
11/21/2024, 6:13 AMEngineMain
because my app is run as native graalvm image (at least that's what I think).Robert Jaros
11/21/2024, 8:00 AMval config = CommandLineConfig(args)
embeddedServer(CIO, config.environment, {
takeFrom(config.engineConfig)
loadCommonConfiguration(config.rootConfig.environment.config.config("ktor.deployment"))
}) {
install(Compression)
initSsr()
}.start(wait = true)
Aleksei Tirman [JB]
11/21/2024, 8:31 AM