raharrison/kotlin-ktor-exposed-starter

bug: application.conf is ignored

lindenquan opened this issue · 1 comments

the port configuration is hard-coded, and the application.conf is ignored.
The following code would fix the issue

 embeddedServer(Netty, commandLineEnvironment(args)).start(wait = true)

application.conf:    
ktor {
    deployment {
        port = 8000
        watch = [  build ] 
    }

    application {
        modules = [ MainKt.mainModule ]
    }
}

Thanks! Should be resolved now.