andylamax
07/23/2024, 12:43 AMembeddedServer(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??Aleksei Tirman [JB]
07/23/2024, 8:02 AMLOG [] DEBUG ktor.application Watching /home/stexe/projects/ktor_sandbox/build/classes/kotlin/main for changes.
LOG [] DEBUG ktor.application Watching /home/stexe/projects/ktor_sandbox/build/classes/kotlin/main/gpt for changes.
LOG [] DEBUG ktor.application Watching /home/stexe/projects/ktor_sandbox/build/classes/kotlin/main/META-INF for changes.
LOG [] DEBUG ktor.application Watching /home/stexe/projects/ktor_sandbox/build/classes/kotlin/main/algo for changes.
LOG [] DEBUG ktor.application Watching /home/stexe/projects/ktor_sandbox/build/classes/kotlin/main/exposed for changes.
LOG [] DEBUG ktor.application Watching /home/stexe/projects/ktor_sandbox/build/classes/kotlin/main/packageB for changes.
LOG [] DEBUG ktor.application Watching /home/stexe/projects/ktor_sandbox/build/classes/kotlin/main/packageA for changes.
andylamax
07/23/2024, 6:16 PMAleksei Tirman [JB]
07/23/2024, 7:09 PMandylamax
07/23/2024, 10:23 PMSystem.getProperty("io.ktor.development")
returns true.
What more do I need to do to enable logging?Aleksei Tirman [JB]
07/24/2024, 7:44 AMVáclav Benes
11/08/2024, 9:55 PM