From 58e43cdfeee9215762701cb998ef5cdb480cd111 Mon Sep 17 00:00:00 2001 From: lizw Date: Wed, 1 Dec 2021 10:41:01 +0800 Subject: [PATCH] ... --- yxt/deploy-lims.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yxt/deploy-lims.sh b/yxt/deploy-lims.sh index 7fb1f25..65134c5 100644 --- a/yxt/deploy-lims.sh +++ b/yxt/deploy-lims.sh @@ -8,6 +8,7 @@ dirPath=~/deploy/yxt_lmis serverName=yxt_lmis logPath=~/logs/yxt_lmis_nohup.log +profiles=${1:-"hwy"} echoPrefix="\033[36m+" echoSuffix="\033[0m" @@ -59,8 +60,8 @@ startServer() { if [ -z $pid ];then echo -e "$echoPrefix cd $dirPath $echoSuffix" cd $dirPath - echo -e "$echoPrefix java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./ent-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,hwy --server.port=8082 >$logPath 2>&1 & $echoSuffix" - java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./ent-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,hwy --server.port=8082 >$logPath 2>&1 & + echo -e "$echoPrefix java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./ent-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8082 >$logPath 2>&1 & $echoSuffix" + java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./ent-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8082 >$logPath 2>&1 & echo "$serverName 启动成功!" else echo "$serverName 正在运行..."