Ktor server port precedence between application.conf and PORT env var
Diagnosing a Ktor deployment that fails health checks often requires knowing which port the embedded server actually bound at startup. Configuration is loaded from application.conf HOCON, environment variables, and command-line arguments, with programmatic configure blocks also available via embeddedServer factories. The documented merging of these sources i