Browse Source

06api-test-d300.sh

07wms-test-d100.sh
master
lizw 2 years ago
parent
commit
287bbd39ca
  1. 16
      yxt-db-pg/07wms-test-d100.sh

16
yxt-db-pg/07wms-test-d100.sh

@ -2,7 +2,7 @@
#set -x #set -x
set -e set -e
codePath=/home/www/deploy/wms8_test_d100 codePath=/home/www/deploy/wms8_test_d300
gitUrlArr=( gitUrlArr=(
"http://git.galaxis.yvanui.com/wms8/wms8-bench.git" "http://git.galaxis.yvanui.com/wms8/wms8-bench.git"
"http://git.galaxis.yvanui.com/wms8/wms-core.git" "http://git.galaxis.yvanui.com/wms8/wms-core.git"
@ -109,12 +109,12 @@ buildCode() {
echo "" echo ""
} }
logPath=/data/logs/wms8_test_d100/wms8_test_d100.log logPath=/data/logs/wms8_test_d300/wms8_test_d300.log
dirPath=/home/www/deploy/wms8_test_d100/wms-biz/servo/build/libs/ dirPath=/home/www/deploy/wms8_test_d300/wms-biz/servo/build/libs/
serverName=wms8_test_d100 serverName=wms8_test_d300
cmd=$1 cmd=$1
profiles=${2:-"pg-test-d100"} profiles=${2:-"pg-test-d300"}
#------------------------------------------------------------------- #-------------------------------------------------------------------
JAVA_MEM_OPTS=" -DappName=${serverName} -server -Xmx4g -Xms4g" JAVA_MEM_OPTS=" -DappName=${serverName} -server -Xmx4g -Xms4g"
@ -127,8 +127,8 @@ startServer() {
if [ -z $pid ];then if [ -z $pid ];then
echo -e "$echoPrefix cd $dirPath../runtime/ $echoSuffix" echo -e "$echoPrefix cd $dirPath../runtime/ $echoSuffix"
cd $dirPath../runtime/ 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=8100 >>/dev/null 2>&1 & $echoSuffix" 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=8300 >>/dev/null 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=8100 >>/dev/null 2>&1 & java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./servo-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8300 >>/dev/null 2>&1 &
echo "$serverName 启动成功!" echo "$serverName 启动成功!"
else else
echo "$serverName 正在运行..." echo "$serverName 正在运行..."
@ -230,4 +230,4 @@ else
fi fi
# 一心堂 测试 10.0.42.210 # 一心堂 测试 10.0.42.210
# bash <(curl -s http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/yxt-db-pg/07wms-test-d100.sh) [cmd profiles] # bash <(curl -s http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/yxt-db-pg/07wms-test-d300.sh) [cmd profiles]

Loading…
Cancel
Save