chore: 运行时 config.json 不再纳入 git 跟踪,改用 config.example.json 模板

config.json 是运行时高频写入的数据文件(网页改配置、每次 App_Store 打包递增
构建号都会写盘),纳入版本控制会导致服务器每次 git pull 与本地生产配置冲突。

- git rm --cached backend/data/config.json(保留磁盘文件,仅移出索引)
- .gitignore 显式忽略 backend/data/config.json 并补充说明
- 新增 config.example.json 作为结构模板(不含真实密钥/生产数据)
- README 说明其为运行时文件、pull 不覆盖,及从模板初始化的方式

首次部署仍可通过根目录 config.json 自动导入为 backend/data/config.json。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-07-29 17:12:09 +09:00
co-authored by Claude Opus 4.8
parent 91e9b027e8
commit 3cb4053ab5
4 changed files with 89 additions and 459 deletions
+3
View File
@@ -12,7 +12,10 @@ __pycache__/
# 运行时数据
backend/data/*.bak
# 运行时配置:网页 UI 改配置、每次 App_Store 打包都会写盘,不纳入版本控制。
# 结构参见仓库根目录的 config.example.json;首次部署可 cp 一份作为初始种子。
config.json
backend/data/config.json
ReadoorBranches/
build/