main #8
2 changed files with 10 additions and 8 deletions
7
backend/application.yaml
Normal file
7
backend/application.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
ktor:
|
||||
development: true
|
||||
deployment:
|
||||
port: 7879
|
||||
application:
|
||||
modules:
|
||||
- observer.nelle.nelleObserverBackend.ApplicationKt.module
|
|
@ -15,14 +15,9 @@ import io.ktor.server.plugins.cors.routing.*
|
|||
import kotlinx.coroutines.runBlocking
|
||||
import observer.nelle.nelleObserverBackend.plugins.configureRouting
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
embeddedServer(
|
||||
Netty,
|
||||
port = 7879, // This is the port on which Ktor is listening
|
||||
host = "0.0.0.0",
|
||||
module = Application::module,
|
||||
).start(wait = true)
|
||||
}
|
||||
fun main(args: Array<String>): Unit =
|
||||
io.ktor.server.netty.EngineMain
|
||||
.main(args)
|
||||
|
||||
fun Application.module() {
|
||||
install(ContentNegotiation)
|
||||
|
|
Loading…
Reference in a new issue