Fix data loss: remove data files from git, add gitignore, auto-recover
- Remove data/companies.json and data/companies/cuitunet/config.json from git (tracked data files get overwritten on every deploy, causing data loss) - Add data/companies/*/ and data/tickets.json to .gitignore - Migration now auto-recovers companies.json and config.json if missing (handles case where git clean removes untracked data files) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -4,7 +4,10 @@ data/changelog.json
|
||||
data/archive.json
|
||||
data/leads.json
|
||||
data/config.json
|
||||
data/tickets.json
|
||||
data/reset_tokens.json
|
||||
data/login_attempts.json
|
||||
data/backups/
|
||||
data/files/
|
||||
data/companies.json
|
||||
data/companies/*/
|
||||
|
||||
Reference in New Issue
Block a user