Hi, I’m trying to use ktor multiplatform (jvm serv...
# ktor
h
Hi, I’m trying to use ktor multiplatform (jvm server and js client). I’m trying to get it to run with an application.conf but im running into a few issues. the application.conf is located at jvmMain/resources/application.conf, but i get an exception whenever I try to run it via `io.ktor.server.netty.DevelopmentEngine`:
Here is my application.conf:
Copy code
ktor {
    deployment {
        port = 8080
    }

    application {
        modules = [ com.abefix.ticketing.ServerKt.main ]
    }
}
Also, here is a screenshot of the classpath of my project (jsMain and Test folders have been hidden as not implemented yet):
Let me know if you guys have any fixes for this. Thanks
d
There are multiplatform issues with resources at this point. That happens to you running normally inside idea? or with gradle?
Inside intellij you can delegate test and program running gradle if that’s your issue
h
Nope delegate actions to gradle didn’t fix
d
Does the
fullstack-mpp
sample work for you? I have updated it to use a
DevelopmentEngine
instead and an
application.conf
file in the resources and seems to work fine for me: https://github.com/ktorio/ktor-samples/commit/79c6a9bb62e1b0da8d4c9064b54f72e3f064b560
h
I will try soon and report back
👌 1