Verified Commit 57197614 authored by madhead's avatar madhead

Fail #1: No K/N support for Ktor servers yet!

parent 6675db34
Pipeline #65371237 failed with stages
in 3 minutes and 49 seconds
......@@ -10,7 +10,16 @@ kotlin {
linuxArm32Hfp("raspberrypi") {
binaries {
executable("saberlight") {
entryPoint = "by.dev.madhead.saberlight.main"
// entryPoint = "by.dev.madhead.saberlight.main"
entryPoint = "io.ktor.server.cio.EngineMain"
}
}
}
sourceSets {
val raspberrypiMain by getting {
dependencies {
implementation("io.ktor:ktor-server-cio:1.2.1")
}
}
}
......
package by.dev.madhead.saberlight
@KtorExperimentalAPI
fun Application.main() {
}
ktor {
deployment {
port = 8080
port = ${?SABERLIGHT_HTTP_PORT}
}
application {
modules = [by.dev.madhead.saberlight.SaberlightKt.main]
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment