For some reason I can't get hot-reloading working for a Ktor backend server. I can see in the logs that the server does detect file changes after performing a re-build, but when I reload the browser it can no longer connect to the server. Since I have made all the necessary changes to the application.conf file, is there something else that I am missing?
a
Aleksei Tirman [JB]
03/17/2025, 10:11 AM
There might be this issue (KTOR-7352). Can you please ensure you don't configure the server module with a lambda?
c
Chris
03/22/2025, 4:29 PM
I am just using the generated code created by intellij, so the code to start the server is just
Copy code
fun main(args: Array<String>) {
io.ktor.server.netty.EngineMain.main(args)
}
Thanks for the link to the existing bug. I will keep my eye on it.