Files
web_hgtv_h5/app/deploy_prod.sh
T
谢宇宁andClaude Opus 5.5 3639d2184a Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 14:47:17 +07:00

16 lines
609 B
Bash
Executable File

#!/bin/bash
echo "开始"
rm -rf ./web_huangguo_h5 ./web_huangguo_h5.tar.gz
GOOS=linux GOARCH=amd64 go build -o web_huangguo_h5
tar zvcf web_huangguo_h5.tar.gz web_huangguo_h5 templates/ static/ \
--exclude='templates/page/sitemaps/sitemap.xml' \
--exclude='templates/page/sitemaps/sitemap-*.xml' \
--exclude='templates/page/rss.xml' \
--exclude='templates/page/llms.txt' \
--exclude='templates/page/llms-full.txt'
scp web_huangguo_h5.tar.gz root@172.104.166.87:/data/uzip
ssh root@172.104.166.87 "/server/web_huangguo/h5/up_app.sh"
rm -rf ./web_huangguo_h5 ./web_huangguo_h5.tar.gz