addamsson
08/26/2020, 8:51 AMwatch
to work in Ktor? I've been trying for ages but it never works. Right now I get Module function provided as lambda cannot be unlinked for reload
even though I copied the exact same code from the documentation site:
fun main(args: Array<String>) {
embeddedServer(
Netty,
watchPaths = listOf("mydir"),
port = PORT,
module = Application::module
).start(true)
}
What am I doing wrong?watch
doesn't work with an overloaded module function:@kotlin.jvm.JvmOverloads
fun Application.module(testing: Boolean = false)
Michael
08/26/2020, 8:59 AMaddamsson
08/26/2020, 9:09 AM