generated from rnentjes/kotlin-server-web-empty
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.
This commit is contained in:
4
.idea/artifacts/dummy_js_0_1_0_SNAPSHOT.xml
generated
4
.idea/artifacts/dummy_js_0_1_0_SNAPSHOT.xml
generated
@@ -1,6 +1,8 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="dummy-js-0.1.0-SNAPSHOT">
|
||||
<output-path>$PROJECT_DIR$/build/libs</output-path>
|
||||
<root id="archive" name="dummy-js-0.1.0-SNAPSHOT.jar" />
|
||||
<root id="archive" name="dummy-js-0.1.0-SNAPSHOT.jar">
|
||||
<element id="module-output" name="dummy.jsMain" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
||||
4
.idea/artifacts/dummy_jvm_0_1_0_SNAPSHOT.xml
generated
4
.idea/artifacts/dummy_jvm_0_1_0_SNAPSHOT.xml
generated
@@ -1,6 +1,8 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="dummy-jvm-0.1.0-SNAPSHOT">
|
||||
<output-path>$PROJECT_DIR$/build/libs</output-path>
|
||||
<root id="archive" name="dummy-jvm-0.1.0-SNAPSHOT.jar" />
|
||||
<root id="archive" name="dummy-jvm-0.1.0-SNAPSHOT.jar">
|
||||
<element id="module-output" name="dummy.jvmMain" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
||||
@@ -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()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user