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>
42 lines
587 B
Plaintext
42 lines
587 B
Plaintext
# 环境变量(含密码)
|
|
.env
|
|
|
|
# Python
|
|
__pycache__/
|
|
*.py[cod]
|
|
*.egg-info/
|
|
.venv/
|
|
|
|
# 数据库
|
|
*.db
|
|
|
|
# 运行时数据
|
|
backend/data/*.bak
|
|
# 运行时配置:网页 UI 改配置、每次 App_Store 打包都会写盘,不纳入版本控制。
|
|
# 结构参见仓库根目录的 config.example.json;首次部署可 cp 一份作为初始种子。
|
|
config.json
|
|
backend/data/config.json
|
|
ReadoorBranches/
|
|
build/
|
|
|
|
# 日志
|
|
logs/
|
|
|
|
# 服务器 PID
|
|
.server.pid
|
|
.watchdog.pid
|
|
|
|
# 前端
|
|
node_modules/
|
|
frontend/node_modules/
|
|
backend/static/
|
|
|
|
# macOS
|
|
.DS_Store
|
|
|
|
# IDE
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|