Skip to content

Commit

Permalink
rename app server port to service default port (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
svrnm authored Dec 30, 2024
1 parent 2880d12 commit 8202fe5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/services/java/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
APP_SERVER_PORT=${APP_SERVER_PORT:-8080}
echo java -jar "javanode-1.0-SNAPSHOT.jar" "${APP_SERVER_PORT}"
APP_CONFIG="$(</config.json)" java -jar "javanode-1.0-SNAPSHOT.jar" "${APP_SERVER_PORT}"
APP_SERVER_PORT=${SERVICE_DEFAULT_PORT:-8080}
echo java -jar "javanode-1.0-SNAPSHOT.jar" "${SERVICE_DEFAULT_PORT}"
APP_CONFIG="$(</config.json)" java -jar "javanode-1.0-SNAPSHOT.jar" "${SERVICE_DEFAULT_PORT}"
6 changes: 3 additions & 3 deletions src/services/nodejs/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
APP_SERVER_PORT=${APP_SERVER_PORT:-8080}
echo "Running server on :${APP_SERVER_PORT}"
APP_CONFIG="$(</config.json)" node index.js ${APP_SERVER_PORT}
SERVICE_DEFAULT_PORT=${SERVICE_DEFAULT_PORT:-8080}
echo "Running server on :${SERVICE_DEFAULT_PORT}"
APP_CONFIG="$(</config.json)" node index.js ${SERVICE_DEFAULT_PORT}

0 comments on commit 8202fe5

Please sign in to comment.