From afe1e9996e15374ac578b04085f128769270a95a Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Mon, 9 May 2022 12:54:53 +0800 Subject: [PATCH] =?UTF-8?q?prod-deploy-wms8.sh=20=E4=BC=98=E5=8C=96deploy?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E5=81=9C=E6=9C=BA=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-yn/pre-deploy-wms8.sh | 10 +++++----- yxt-yn/prod-deploy-wms8.sh | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/yxt-yn/pre-deploy-wms8.sh b/yxt-yn/pre-deploy-wms8.sh index 8b431eb..ea8c1e9 100644 --- a/yxt-yn/pre-deploy-wms8.sh +++ b/yxt-yn/pre-deploy-wms8.sh @@ -200,6 +200,11 @@ deployServer() { deployPull buildCode echo "###--代码构建完成--------------------------------------------------------------------------###" + # 重启服务 + if [ ! -z $pid ];then + stopServer $pid + sleep 3s + fi # 移动编译后的文件 echo -e "$echoPrefix cd $dirPath $echoSuffix" cd $dirPath @@ -207,11 +212,6 @@ deployServer() { rm -rf ../runtime echo -e "$echoPrefix cp -r ./ ../runtime $echoSuffix" cp -r ./ ../runtime - # 重启服务 - if [ ! -z $pid ];then - stopServer $pid - sleep 3s - fi echo "" startServer } diff --git a/yxt-yn/prod-deploy-wms8.sh b/yxt-yn/prod-deploy-wms8.sh index dfc7a62..32a76b9 100644 --- a/yxt-yn/prod-deploy-wms8.sh +++ b/yxt-yn/prod-deploy-wms8.sh @@ -200,6 +200,11 @@ deployServer() { deployPull buildCode echo "###--代码构建完成--------------------------------------------------------------------------###" + # 重启服务 + if [ ! -z $pid ];then + stopServer $pid + sleep 3s + fi # 移动编译后的文件 echo -e "$echoPrefix cd $dirPath $echoSuffix" cd $dirPath @@ -207,11 +212,6 @@ deployServer() { rm -rf ../runtime echo -e "$echoPrefix cp -r ./ ../runtime $echoSuffix" cp -r ./ ../runtime - # 重启服务 - if [ ! -z $pid ];then - stopServer $pid - sleep 3s - fi echo "" startServer }