编译和发布脚本

This commit is contained in:
2026-11-05 16:28:45 +08:00
parent 88d75e39c2
commit a1c95f2b03
+1 -1
View File
@@ -4,4 +4,4 @@ npm run build:prod
zip -q -r dist.zip dist
# https://dis79itlh8uwv.cloudfront.net
scp dist.zip root@172.104.39.32:/tmp/dist.zip
ssh root@172.104.39.32 "set -e && rm -rf /tmp/extract && unzip -q /tmp/dist.zip -d /tmp/extract && cd /server/51dj/h5/dist/ && rm -rf ./* && mv /tmp/extract/dist/* . && rm -rf /tmp/extract /tmp/dist.zip && echo DEPLOY_OK"
ssh root@172.104.39.32 "set -e && rm -rf /tmp/extract && unzip -q /tmp/dist.zip -d /tmp/extract && cd /server/hjsq/h5/dist/ && rm -rf ./* && mv /tmp/extract/dist/* . && rm -rf /tmp/extract /tmp/dist.zip && echo DEPLOY_OK"