diff --git a/backend/src/main/kotlin/Application.kt b/backend/src/main/kotlin/Application.kt index 96801d1..78322da 100644 --- a/backend/src/main/kotlin/Application.kt +++ b/backend/src/main/kotlin/Application.kt @@ -42,5 +42,10 @@ public fun main() { ) } - embeddedServer(CIO, module = Application::module, port = 8001, watchPaths = listOf("classes")).start(true) + embeddedServer( + CIO, + module = Application::module, + port = System.getenv("WEBSITE_PORT")?.toIntOrNull() ?: 8001, + watchPaths = listOf("classes"), + ).start(true) }