1.修改代码适配阿里云的服务器

This commit is contained in:
whm
2026-03-17 14:27:32 +08:00
parent 826617d737
commit 20e7f3a65d
1777 changed files with 775041 additions and 10 deletions

View File

@@ -12,15 +12,17 @@ echo " yh_web 拉取并重启"
echo " 路径: $ROOT"
echo "=========================================="
[ -f server/.env ] && sed -i 's/\r$//' server/.env
[ -f server/.env ] && set -a && source server/.env && set +a
echo "[1/2] 拉取代码..."
git pull
echo ""
echo "[2/2] 重新构建并启动..."
docker compose build --no-cache 2>/dev/null || docker-compose build --no-cache
docker compose up -d --force-recreate 2>/dev/null || docker-compose up -d --force-recreate
echo "[2/2] 重新构建并启动(与 start-only-server 相同API 用 GOPROXY/vendor..."
export GOPROXY="${GOPROXY:-https://goproxy.cn,direct}"
docker compose build --no-cache
docker compose up -d --force-recreate
echo ""
echo "完成. api:9527 web:9528 admin:9529"