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 kotlinx.coroutines.runBlocking
|
||||||
import observer.nelle.nelleObserverBackend.plugins.configureRouting
|
import observer.nelle.nelleObserverBackend.plugins.configureRouting
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>): Unit =
|
||||||
embeddedServer(
|
io.ktor.server.netty.EngineMain
|
||||||
Netty,
|
.main(args)
|
||||||
port = 7879, // This is the port on which Ktor is listening
|
|
||||||
host = "0.0.0.0",
|
|
||||||
module = Application::module,
|
|
||||||
).start(wait = true)
|
|
||||||
}
|
|
||||||
|
|
||||||
fun Application.module() {
|
fun Application.module() {
|
||||||
install(ContentNegotiation)
|
install(ContentNegotiation)
|
||||||
|
|
Loading…
Reference in a new issue