The documentation for Ktor Autoreload can be found here. I had issues wih using the EmbeddedServer so I switched to EngineMain paired with an application configuration file.

To recompile on changes, i had to run the command “./gradlew -t build” and then on a separate terminal “./gradlew run”

Tags: ktor autoreload running debugging