Browse Source

01wms8-test.sh

master
lizw 4 years ago
parent
commit
cacfe5a3c0
  1. 9
      01dongying_guokang/01wms8-test.sh

9
01dongying_guokang/01wms8-test.sh

@ -197,16 +197,21 @@ logs() {
tail -F $logPath -n 100 tail -F $logPath -n 100
} }
deployYvanUI() {
bash <(curl -s http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/00base/01yvan-ext.sh) deploy
bash <(curl -s http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/00base/02yvan-ext-mobile.sh) deploy
}
pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'` pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'`
# 操作参数: pull deploy restart start stop kill log logs # 操作参数: pull deploy restart start stop kill log logs
if [ "$cmd" == "pull" ];then if [ "$cmd" == "pull" ];then
bash <(curl -s http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/00base/01yvan-ext.sh) deploy deployYvanUI
deployPull deployPull
if [ -z $pid ];then if [ -z $pid ];then
echo "$serverName 未运行 | 输入操作参数: pull deploy restart start stop kill log logs" echo "$serverName 未运行 | 输入操作参数: pull deploy restart start stop kill log logs"
fi fi
elif [ "$cmd" == "deploy" ];then elif [ "$cmd" == "deploy" ];then
bash <(curl -s http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/00base/01yvan-ext.sh) deploy deployYvanUI
deployServer $pid deployServer $pid
elif [ "$cmd" == "restart" ];then elif [ "$cmd" == "restart" ];then
restartServer $pid restartServer $pid

Loading…
Cancel
Save