feat(deploy): compose up 后自动 promotion-import(YH_IMPORT_PROMOTION_SITE_ID + Docker go run)

Made-with: Cursor
This commit is contained in:
whm
2026-03-21 21:28:56 +08:00
parent c1fb5f3440
commit f4e51165a7
6 changed files with 89 additions and 2 deletions

View File

@@ -350,6 +350,9 @@ fi
compose_cmd down 2>/dev/null || true
compose_cmd up -d --force-recreate
# 可选web/promotion/视频发布 -> data/uploads + MongoDB须 server/.env 中 YH_IMPORT_PROMOTION_SITE_ID
bash "$ROOT/scripts/run-promotion-import-on-deploy.sh" "$ROOT"
echo ""
echo "[3/3] 证书与宿主机 Nginx可选..."
NGINX_CONF_NAME="${NGINX_DOMAIN}.conf"