From 123cdad8702be9bf853ba741f3d7a1fbb24ca77d Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Fri, 21 Jul 2023 11:43:47 +0800 Subject: [PATCH] 09wms-ztf-pad-test.sh --- hua_wei_yun/09wms-ztf-pad-test.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 hua_wei_yun/09wms-ztf-pad-test.sh diff --git a/hua_wei_yun/09wms-ztf-pad-test.sh b/hua_wei_yun/09wms-ztf-pad-test.sh new file mode 100644 index 0000000..4aeaaa3 --- /dev/null +++ b/hua_wei_yun/09wms-ztf-pad-test.sh @@ -0,0 +1,29 @@ +#!/bin/bash +#set -x +set -e + +echoPrefix="\033[36m+" +echoSuffix="\033[0m" + +codePath=/home/www/deploy/wms8_ztf_2 +serverUrl=http://127.0.0.1:8098 + +deploy() { + # 更新代码 + echo -e "$echoPrefix cd $codePath/wms-ui-mobile $echoSuffix" + cd $codePath/wms-ui-mobile + echo -e "$echoPrefix git checkout . $echoSuffix" + git checkout . + echo -e "$echoPrefix git pull $echoSuffix" + git pull +} + +cmd=$1 +if [ "$cmd" == "deploy" ];then + deploy +else + echo "使用 deploy 命名打包pda" +fi + +# 中通服 PDA +# bash <(curl -s http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/hua_wei_yun/09wms-ztf-pad-test.sh) [cmd]