Quellcode durchsuchen

luolai prod & test

zhoucg vor 5 Monaten
Ursprung
Commit
8249f18b86
2 geänderte Dateien mit 6 neuen und 3 gelöschten Zeilen
  1. 6 0
      08luolai/05wms83-prod.sh
  2. 0 3
      08luolai/11wms83-job-prod.sh

+ 6 - 0
08luolai/05wms83-prod.sh

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

+ 0 - 3
08luolai/11wms83-job-prod.sh

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