From 497bc383e40c44859901d89bd72885c6b0f03e56 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 7 Nov 2019 00:09:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8A=82=E7=82=B9=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/node/resources/run.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/build/node/resources/run.sh b/build/node/resources/run.sh index 2aa1b5d3..c08bf731 100644 --- a/build/node/resources/run.sh +++ b/build/node/resources/run.sh @@ -25,14 +25,12 @@ start() { fi ADMIN=$1 - PORT=$2 + INSTANCE=$2 - if [[ "$PORT" = "" ]] ;then - PORT=${ENV_PORT} - fi - if [[ "$PORT" = "" ]] ;then - PORT="6689" + if [[ "INSTANCE" = "" ]] ;then + PORT=${ENV_INSTANCE} fi + if [[ "$ADMIN" = "" ]] ; then ADMIN=${ENV_ADMIN} fi @@ -52,7 +50,7 @@ start() { else time=$(date "+%Y%m%d-%H%M%S") ## Change from /dev/null to something like /var/log/$PROG if you want to save output. - nohup $PROG_PATH/$PROG --port=$PORT --admin=$ADMIN 2>&1 >"$WORK_PATH/logs/stdout-$PROG-$time.log" & pid=$! + nohup $PROG_PATH/$PROG --instance=$INSTANCE --admin=$ADMIN 2>&1 >"$WORK_PATH/logs/stdout-$PROG-$time.log" & pid=$! echo "$PROG started" echo $pid > "$WORK_PATH/$PROG.pid" -- GitLab