main #8

Closed
limepotato wants to merge 183 commits from main into blog-drafts
2 changed files with 10 additions and 8 deletions
Showing only changes of commit 9003a6d59f - Show all commits

7
backend/application.yaml Normal file
View file

@ -0,0 +1,7 @@
ktor:
development: true
deployment:
port: 7879
application:
modules:
- observer.nelle.nelleObserverBackend.ApplicationKt.module

View file

@ -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)