Running

Edit pageLast modified: 02 April 2024

When running a Ktor server application, take into account the following specifics:

  • The way used to create a server affects whether you can override server parameters by passing command-line arguments when running a packaged Ktor application.

  • Gradle/Maven build scripts should specify the main class name when starting a server using EngineMain.

  • Running your application inside a servlet container requires a specific servlet configuration.

In this topic, we'll take a look at these configuration specifics and show you how to run a Ktor application in IntelliJ IDEA and as a packaged application.