Is there some example for setting up autoreload fo...
# ktor
d
Is there some example for setting up autoreload for embedded Server? UPD. Solved I'm trying to do it like this: `path/to/server/Server.kt`:
Copy code
fun main(args: Array<String>) {
    val server = embeddedServer(
            Netty,
            port = 1289,
            watchPaths = listOf("path.to.server.ServerKt.main"),
            module = Application::myApp)
    server.start(wait = true)
}

private fun Application.myApp() {
    routing {
        // ...
    }
}
But facing with
Copy code
Exception in thread "main" java.lang.UnsupportedOperationException: Packages and file facades are not yet supported in Kotlin reflection. Meanwhile please use Java reflection to inspect this class: class path.to.server.ServerKt