Files
51dj_h5/prod_build.sh
T
谢宇宁andClaude Opus 5.5 c9b8536d2f 更新脚本
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:18:06 +07:00

8 lines
378 B
Bash
Executable File

set -e
rm -rf dist dist.zip
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/hgmj/h5/dist/ && rm -rf ./* && mv /tmp/extract/dist/* . && rm -rf /tmp/extract /tmp/dist.zip && echo DEPLOY_OK"