Files
hadja_server/web/deploy_prod.sh
T
2026-11-07 11:16:52 +08:00

11 lines
313 B
Bash
Executable File

#!/bin/bash
echo "开始"
rm -rf ./web_hga_web ./web_hga_web.tar.gz
GOOS=linux GOARCH=amd64 go build -o web_hga_web
tar zvcf web_hga_web.tar.gz web_hga_web
scp web_hga_web.tar.gz root@172.104.166.87:/data/uzip
ssh root@172.104.166.87 "/server/web_hga/web/up_app.sh"
rm -rf ./web_hga_web ./web_hga_web.tar.gz