From 9a003f0f688018ed4b4d79f2b77f6c452cb08464 Mon Sep 17 00:00:00 2001 From: rnentjes Date: Sun, 5 Oct 2025 13:07:08 +0200 Subject: [PATCH] Update artifact configurations and improve server port usage Updated `.idea/artifacts` files to include module output elements for `jvmMain` and `jsMain`. Replaced hardcoded server port with dynamic `SERVER_PORT` variable in `Main.kt` for improved configurability and maintainability. --- .idea/artifacts/dummy_js_0_1_0_SNAPSHOT.xml | 4 +++- .idea/artifacts/dummy_jvm_0_1_0_SNAPSHOT.xml | 4 +++- src/jvmMain/kotlin/nl/astraeus/tmpl/Main.kt | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.idea/artifacts/dummy_js_0_1_0_SNAPSHOT.xml b/.idea/artifacts/dummy_js_0_1_0_SNAPSHOT.xml index 6b3bdbd..e64b3a9 100644 --- a/.idea/artifacts/dummy_js_0_1_0_SNAPSHOT.xml +++ b/.idea/artifacts/dummy_js_0_1_0_SNAPSHOT.xml @@ -1,6 +1,8 @@ $PROJECT_DIR$/build/libs - + + + \ No newline at end of file diff --git a/.idea/artifacts/dummy_jvm_0_1_0_SNAPSHOT.xml b/.idea/artifacts/dummy_jvm_0_1_0_SNAPSHOT.xml index f9874f6..e2c9aef 100644 --- a/.idea/artifacts/dummy_jvm_0_1_0_SNAPSHOT.xml +++ b/.idea/artifacts/dummy_jvm_0_1_0_SNAPSHOT.xml @@ -1,6 +1,8 @@ $PROJECT_DIR$/build/libs - + + + \ No newline at end of file diff --git a/src/jvmMain/kotlin/nl/astraeus/tmpl/Main.kt b/src/jvmMain/kotlin/nl/astraeus/tmpl/Main.kt index 74beed4..e582266 100644 --- a/src/jvmMain/kotlin/nl/astraeus/tmpl/Main.kt +++ b/src/jvmMain/kotlin/nl/astraeus/tmpl/Main.kt @@ -58,7 +58,7 @@ fun main() { .setServerOption(UndertowOptions.SHUTDOWN_TIMEOUT, 1000) .build() - println("Starting undertow server at port 6007...") + println("Starting undertow server at port $SERVER_PORT...") server?.start() }