fun main()

in run/http4k-hello-world/src/main/kotlin/WebApp.kt [17:25]


fun main() {
    val port = System.getenv("PORT")?.toInt() ?: 8080

    val server = PrintRequest()
        .then(app)
        .asServer(Undertow(port)).start()

    println("Server started on " + server.port())
}