Browse Source

优化罗莱发布脚本

master
zhoucg 2 months ago
parent
commit
d98fd6a3b6
  1. 10
      08luolai/05wms83-prod.sh
  2. 4
      08luolai/08wms83-test.sh

10
08luolai/05wms83-prod.sh

@ -193,8 +193,8 @@ logs() {
} }
deployYvanUI() { deployYvanUI() {
bash <(curl -s http://git.yvanui.com/projects/jztd-deploy/raw/master/00base/01yvan-ext.sh) pull bash <(curl -s http://git.galaxis.yvanui.com/lizw/jztd-deploy/raw/branch/master/00base/01yvan-ext.sh) pull
bash <(curl -s http://git.yvanui.com/projects/jztd-deploy/raw/master/00base/02yvan-ext-mobile.sh) pull bash <(curl -s http://git.galaxis.yvanui.com/lizw/jztd-deploy/raw/branch/master/00base/02yvan-ext-mobile.sh) pull
} }
pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'` pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'`
@ -202,7 +202,6 @@ pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'`
if [ "$cmd" == "pull" ];then if [ "$cmd" == "pull" ];then
deployYvanUI deployYvanUI
deployPull deployPull
bash <(curl -s http://git.yvanui.com/projects/jztd-deploy/raw/master/08luolai/11wms83-job-prod.sh) pull
if [ -z $pid ];then if [ -z $pid ];then
echo "$serverName 未运行 | 输入操作参数: pull build deploy restart start stop kill log logs" echo "$serverName 未运行 | 输入操作参数: pull build deploy restart start stop kill log logs"
fi fi
@ -210,21 +209,16 @@ elif [ "$cmd" == "build" ];then
deployYvanUI deployYvanUI
deployPull deployPull
buildCode buildCode
bash <(curl -s http://git.yvanui.com/projects/jztd-deploy/raw/master/08luolai/11wms83-job-prod.sh) build
echo "###--代码构建完成--------------------------------------------------------------------------###" echo "###--代码构建完成--------------------------------------------------------------------------###"
elif [ "$cmd" == "deploy" ];then elif [ "$cmd" == "deploy" ];then
deployYvanUI deployYvanUI
deployServer $pid deployServer $pid
bash <(curl -s http://git.yvanui.com/projects/jztd-deploy/raw/master/08luolai/11wms83-job-prod.sh) deploy
elif [ "$cmd" == "restart" ];then elif [ "$cmd" == "restart" ];then
restartServer $pid restartServer $pid
bash <(curl -s http://git.yvanui.com/projects/jztd-deploy/raw/master/08luolai/11wms83-job-prod.sh) restart
elif [ "$cmd" == "start" ];then elif [ "$cmd" == "start" ];then
startServer $pid startServer $pid
bash <(curl -s http://git.yvanui.com/projects/jztd-deploy/raw/master/08luolai/11wms83-job-prod.sh) start
elif [ "$cmd" == "stop" ] || [ "$cmd" == "kill" ];then elif [ "$cmd" == "stop" ] || [ "$cmd" == "kill" ];then
stopServer $pid stopServer $pid
bash <(curl -s http://git.yvanui.com/projects/jztd-deploy/raw/master/08luolai/11wms83-job-prod.sh) stop
elif [ "$cmd" == "log" ] || [ "$cmd" == "logs" ];then elif [ "$cmd" == "log" ] || [ "$cmd" == "logs" ];then
logs logs
else else

4
08luolai/08wms83-test.sh

@ -193,8 +193,8 @@ logs() {
} }
deployYvanUI() { deployYvanUI() {
bash <(curl -s http://git.yvanui.com/projects/jztd-deploy/raw/master/00base/01yvan-ext.sh) pull bash <(curl -s http://git.galaxis.yvanui.com/lizw/jztd-deploy/raw/branch/master/00base/01yvan-ext.sh) pull
bash <(curl -s http://git.yvanui.com/projects/jztd-deploy/raw/master/00base/02yvan-ext-mobile.sh) pull bash <(curl -s http://git.galaxis.yvanui.com/lizw/jztd-deploy/raw/branch/master/00base/02yvan-ext-mobile.sh) pull
} }
pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'` pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'`

Loading…
Cancel
Save