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

@@ -6,5 +6,9 @@ MONGODB_URI=mongodb://mongo:27017
MONGODB_DB=yxd-agent-testing
PORT=8088
GIN_MODE=release
# 对外域名CORS、日志与 nginx 反代域名一致
# 对外域名CORS、日志与 nginx 反代域名一致(官网 https://yuheng.yuxindazhineng.com/
ALLOWED_ORIGINS=https://yuheng.yuxindazhineng.com
# 部署时自动导入「视频发布」到 data/uploads + site_assetspull-and-restart / restart 在 compose up 后执行)
# 填官网站点 MongoDB _id与 /api/web/routes 返回的 site_id 一致);留空则跳过
# YH_IMPORT_PROMOTION_SITE_ID=