feat(deploy): 拉取后自动合并 server/.env.example 缺失键,服务器只跑 pull-and-restart

Made-with: Cursor
This commit is contained in:
whm
2026-03-21 21:35:11 +08:00
parent 0896bd3bab
commit 1710a11dad
5 changed files with 39 additions and 3 deletions

View File

@@ -9,6 +9,6 @@ GIN_MODE=release
# 对外域名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 一致);私人仓库已填官网默认值,多站请
# 部署时自动导入「视频发布」到 data/uploads + site_assetscompose up 后执行)
# 官网站点 MongoDB _idpull-and-restart 会把本文件里「.env 缺失的键」自动追加到 server/.env一般无需手
YH_IMPORT_PROMOTION_SITE_ID=69ba1f1f41aeb82acfd609ef