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:
co-authored by
Claude Opus 4.8
parent
91e9b027e8
commit
3cb4053ab5
@@ -170,9 +170,17 @@ GIT_PASSWORD=<仅 read_repository 权限的 Personal Access Token>
|
||||
|
||||
### Web 管理配置
|
||||
|
||||
以下配置通过管理后台 Web 界面管理(存储在 `config.json`):
|
||||
以下配置通过管理后台 Web 界面管理(存储在 `backend/data/config.json`):
|
||||
|
||||
首次部署时,如果项目根目录下存在 `config.json`,系统会自动导入其中的 `apps` 和 `schemes` 作为初始配置;导入后即可继续在后台增删改。
|
||||
> ⚠️ `config.json` 是**运行时数据文件**(网页改配置、每次 App_Store 打包写入构建号都会改写它),**不纳入版本控制**,`git pull` 不会覆盖它。仓库仅提供结构模板 `config.example.json`。
|
||||
>
|
||||
> 首次部署时,若项目根目录下存在 `config.json`,系统会自动将其复制为 `backend/data/config.json` 作为初始配置。可从模板起步:
|
||||
>
|
||||
> ```bash
|
||||
> cp config.example.json config.json # 按需填入真实的 apps / servers / upload 等,再启动
|
||||
> ```
|
||||
>
|
||||
> 导入后即可继续在后台增删改。
|
||||
|
||||
| 配置项 | 说明 |
|
||||
|--------|------|
|
||||
|
||||
Reference in New Issue
Block a user