Skip to content

Commit 2202301

Browse files
committed
chore: Make port customizable
1 parent 002d31e commit 2202301

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

backend/src/main/kotlin/Application.kt

+6-1
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,10 @@ public fun main() {
4242
)
4343
}
4444

45-
embeddedServer(CIO, module = Application::module, port = 8001, watchPaths = listOf("classes")).start(true)
45+
embeddedServer(
46+
CIO,
47+
module = Application::module,
48+
port = System.getenv("WEBSITE_PORT")?.toIntOrNull() ?: 8001,
49+
watchPaths = listOf("classes"),
50+
).start(true)
4651
}

0 commit comments

Comments
 (0)