Helio
07/03/2021, 6:54 AMembeddedServer(Netty, 8080, module = Application::module).start()
with developmentMode = false
to be able to run my application locally. Is that expected?
I couldn’t find any information in the change logs.
val builder = ApplicationEngineEnvironmentBuilder()
builder.module(Application::module)
embeddedServer(Netty, builder.build {
developmentMode = false
connector {
port = 8080
}
}).start()
The reason I had to do it, was to avoid the a similar error reported here. https://youtrack.jetbrains.com/issue/KTOR-2306Aleksei Tirman [JB]
07/05/2021, 9:22 AMdevelopmentMode
is disabled by default in Ktor 1.6.0 and 1.6.1. Could you please share a code snippet that works unexpectedly with Ktor 1.6.1?Helio
07/05/2021, 11:01 PMHelio
07/07/2021, 3:19 AMdevelopmentMode true
. Once I removed it Everything worked as expected.
My bad!