Browse Source

09wms-ztf-pad-test.sh

lizw 1 year ago
parent
commit
10342acb3c
1 changed files with 7 additions and 3 deletions
  1. 7 3
      hua_wei_yun/09wms-ztf-pad-test.sh

+ 7 - 3
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"