|
|
|
@ -5,11 +5,11 @@ set -e |
|
|
|
|
|
|
|
gitUrl=ssh://www@122.9.140.63:3022/bot_yxt/yxt_lmis_sc.git |
|
|
|
dirPath=~/deploy/yxt_lmis_sc |
|
|
|
serverName=yxt_lmis_sc |
|
|
|
serverName=yxt_sc_lmis |
|
|
|
logPath=~/logs/yxt_lmis_sc_nohup.log |
|
|
|
|
|
|
|
cmd=$1 |
|
|
|
profiles=${2:-"hwy"} |
|
|
|
profiles=${2:-"yxt-sc-prod"} |
|
|
|
echoPrefix="\033[36m+" |
|
|
|
echoSuffix="\033[0m" |
|
|
|
|
|
|
|
@ -61,8 +61,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,$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 -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=8382 >$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=8382 >$logPath 2>&1 & |
|
|
|
echo "$serverName 启动成功!" |
|
|
|
else |
|
|
|
echo "$serverName 正在运行..." |
|
|
|
|