olfek
02/18/2021, 7:15 PMvar myVariable : String? = null
fun main(args: Array<String>): Unit {
myVariable = "Hello World"
io.ktor.server.netty.EngineMain.main(args)
}
@Suppress("unused") // Referenced in application.conf
@kotlin.jvm.JvmOverloads
fun Application.module(testing: Boolean = false) {
// myVariable is null here
}
spand
02/18/2021, 8:54 PMolfek
02/18/2021, 9:18 PMspand
02/19/2021, 11:44 AMolfek
02/19/2021, 1:19 PMapplication.conf
including development = true
for hot reload