From 10342acb3cf4d50136c01b9451c669b2c95d8a52 Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Fri, 21 Jul 2023 13:39:56 +0800 Subject: [PATCH] 09wms-ztf-pad-test.sh --- hua_wei_yun/09wms-ztf-pad-test.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hua_wei_yun/09wms-ztf-pad-test.sh b/hua_wei_yun/09wms-ztf-pad-test.sh index bf6c3c3..21c8b5d 100644 --- a/hua_wei_yun/09wms-ztf-pad-test.sh +++ b/hua_wei_yun/09wms-ztf-pad-test.sh @@ -6,7 +6,7 @@ echoPrefix="\033[36m+" echoSuffix="\033[0m" codePath=/home/www/deploy/wms8_ztf_2 -serverUrl=http://127.0.0.1:8098 +serverUrl=http://127.0.0.1:8094 deploy() { # 更新代码 @@ -29,7 +29,7 @@ deploy() { # 编译 echo -e "$echoPrefix yarn run build $echoSuffix" - yarn run build + #yarn run build echo "###--编译完成-----------------------------------------------------------------------------###" echo "" @@ -52,7 +52,11 @@ deploy() { echo "" # 上传文件 - + echo -e "$echoPrefix curl -X POST -F 'file=@./tmp/web.zip' $serverUrl/wms_api/api/pages/sys/pdaVersion/PdaPackUpload@uploadFile $echoSuffix" + res_json=$(curl -X POST -F 'file=@./tmp/web.zip' $serverUrl/wms_api/api/pages/sys/pdaVersion/PdaPackUpload@uploadFile) + echo "res_json = $res_json" + filePath=$(echo $res_json | awk -F '"' '{print $10}') + echo "filePath = $filePath" # 还原文件 # echo -e "$echoPrefix rm -rf ./tmp $echoSuffix"