Commit 342e482d authored by 张涵's avatar 张涵

fix: 新机器上可能会产生的错误

parent a22aed9f
......@@ -52,4 +52,6 @@ check_and_cicd:
- '[[ ${EnableOSS} = "true" ]] && ossutil64 cp -rf dist/ oss://zmcms-cn-vue/${NginxAliasDirectory} --exclude "*.html" --exclude ".htaccess" && echo "推送对象存储成功!"'
- '[[ $? != 0 ]] && echo "部署出错!" && exit 1'
# 部署服务器
- rsync --quiet -azv --delete dist/ "/www/web/${CI_PROJECT_PATH_SLUG}/public_html"
\ No newline at end of file
- 'webpath=/www/web/${CI_PROJECT_PATH_SLUG}/public_html'
- mkdir -p ${webpath}
- rsync --quiet -azv --delete dist/ ${webpath}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment