Skip to content

Commit

Permalink
chore: Make port customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
LichtHund committed Jul 10, 2024
1 parent 002d31e commit 2202301
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/src/main/kotlin/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 2202301

Please sign in to comment.