danneu
02/04/2017, 7:18 PMclass Main {
companion object {
@JvmStatic fun main(args: Array<String>) {
val handler: Handler = { Response().text("Hello, world!") }
Server(handler).listen(<http://Env.int|Env.int>("PORT") ?: 3000)
}
}
}
fun main(args: Array<String>) {
val handler: Handler = { Response().text("Hello, world!") }
Server(handler).listen(<http://Env.int|Env.int>("PORT") ?: 3000)
}
the first main function is what runs when i compile my uberjar for production, the latter is what runs in development.
is there something i can do that makes this unnecessary?