|
@@ -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
|