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 and noMoreCLI committed Jan 7, 2025
1 parent 6600e2e commit 5fe82b4
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 5fe82b4

Please sign in to comment.