diff --git a/yxt-yn/prod-deploy-wms8.sh b/yxt-yn/prod-deploy-wms8.sh index e937ab6..7e2f6c9 100644 --- a/yxt-yn/prod-deploy-wms8.sh +++ b/yxt-yn/prod-deploy-wms8.sh @@ -191,6 +191,10 @@ deployPull() { needBuild[idx]=$isChange fi done + # 设置 require_config.js 前端版本 + version=$(date +_%Y_%m_%d_%H_%M_%S) + echo -e "$echoPrefix sed -i 's/_[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}/$version/g' $codePath/public/require_config.js $echoSuffix" + sed -i "s/_[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}/$version/g" $codePath/public/require_config.js echo "###--代码更新完成--------------------------------------------------------------------------###" echo "" }