|
@@ -5,7 +5,7 @@ set -e
|
|
|
|
|
|
dirPath=~/deploy/yxt-prod-api-gateway
|
|
dirPath=~/deploy/yxt-prod-api-gateway
|
|
serverName=yxt_prod_api_gateway
|
|
serverName=yxt_prod_api_gateway
|
|
-logPath=~/logs/yxt-prod-api-gateway.log
|
|
|
|
|
|
+logPath=/data/logs/soap_gateway_prod/soap_gateway_prod.log
|
|
|
|
|
|
cmd=$1
|
|
cmd=$1
|
|
profiles=${2:-"prod"}
|
|
profiles=${2:-"prod"}
|
|
@@ -23,8 +23,8 @@ startServer() {
|
|
if [ -z $pid ];then
|
|
if [ -z $pid ];then
|
|
echo -e "$echoPrefix cd $dirPath $echoSuffix"
|
|
echo -e "$echoPrefix cd $dirPath $echoSuffix"
|
|
cd $dirPath
|
|
cd $dirPath
|
|
- echo -e "$echoPrefix java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./soap-gateway-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=9999 >$logPath 2>&1 & $echoSuffix"
|
|
|
|
- java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./soap-gateway-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=9999 >$logPath 2>&1 &
|
|
|
|
|
|
+ echo -e "$echoPrefix java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./soap-gateway-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=9999 >>/dev/null 2>&1 & $echoSuffix"
|
|
|
|
+ java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./soap-gateway-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=9999 >>/dev/null 2>&1 &
|
|
echo "$serverName 启动成功!"
|
|
echo "$serverName 启动成功!"
|
|
else
|
|
else
|
|
echo "$serverName 正在运行..."
|
|
echo "$serverName 正在运行..."
|