Hello every one, I am failing to configure ktor
embeddedServer(CIO)
to auto reload. I believed I have followed the documentation and have everything in place, but still auto reload wont work
•
build.gradle.kts
contains
"-Dio.ktor.development=true"
• my main function contains
embeddedServer(...,watchPaths=listOf("classes"))
I am running
./gradlew :build -t
(also tried with
jar
and
assemble
) in one terminal and running
./gradlew :run
in another. I make changes and save the main file (the rebuild happens in the build terminal)
I go to the browser and refresh the page but changes are not reflected.
I am on
kotlin 2.0.0
,
Java 18.0.2.1
, tried ktor (
2.3.9
,
2.3.12
and
3.0.0-beta-2
) to no avail. What else am I missing here??