|
|
|
@ -12,7 +12,7 @@ gitUrlArr=( |
|
|
|
branchArr=( |
|
|
|
"pgsql" |
|
|
|
"pgsql" |
|
|
|
"demo" |
|
|
|
"master" |
|
|
|
) |
|
|
|
positionArr=( |
|
|
|
"." |
|
|
|
@ -113,7 +113,7 @@ dirPath=/home/www/deploy/wms8-bench_pgsql/wms-biz/servo/build/libs/ |
|
|
|
serverName=wms8_bench_pgsql |
|
|
|
|
|
|
|
cmd=$1 |
|
|
|
profiles=${2:-"demo"} |
|
|
|
profiles=${2:-"pgsql"} |
|
|
|
|
|
|
|
#------------------------------------------------------------------- |
|
|
|
JAVA_MEM_OPTS=" -DappName=${serverName} -server -Xmx2g -Xms2g" |
|
|
|
@ -126,8 +126,8 @@ startServer() { |
|
|
|
if [ -z $pid ];then |
|
|
|
echo -e "$echoPrefix cd $dirPath../runtime/ $echoSuffix" |
|
|
|
cd $dirPath../runtime/ |
|
|
|
echo -e "$echoPrefix java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./servo-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8095 >$logPath 2>&1 & $echoSuffix" |
|
|
|
java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./servo-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8095 >$logPath 2>&1 & |
|
|
|
echo -e "$echoPrefix java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./servo-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8097 >$logPath 2>&1 & $echoSuffix" |
|
|
|
java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./servo-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8097 >$logPath 2>&1 & |
|
|
|
echo "$serverName 启动成功!" |
|
|
|
else |
|
|
|
echo "$serverName 正在运行..." |