my main.kt looks like this: ``` class Main { ...
# getting-started
d
my main.kt looks like this:
Copy code
class 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?