🚨 EMERGENCY: Remove destructive database flush from Railway

Critical production fix:
- Remove 'python manage.py flush --noinput' from Railway startup
- Prevent further database destruction on deployment
- Current Railway database is completely empty (no agents, no users)
- This fix will stop future data loss

Next deployment will run populate_agents without wiping existing data.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude 2025-08-04 16:10:55 +05:30
parent ae303c2621
commit efdceb8730

View File

@ -4,7 +4,7 @@
"builder": "NIXPACKS" "builder": "NIXPACKS"
}, },
"deploy": { "deploy": {
"startCommand": "python manage.py flush --noinput; python manage.py migrate --run-syncdb; python manage.py populate_agents; python manage.py reset_admin; python manage.py verify_email admin@quantumtaskai.com --force || true; python manage.py collectstatic --noinput && gunicorn netcop_hub.wsgi:application --bind 0.0.0.0:$PORT --workers 1 --timeout 60", "startCommand": "python manage.py migrate; python manage.py populate_agents; python manage.py reset_admin; python manage.py verify_email admin@quantumtaskai.com --force || true; python manage.py collectstatic --noinput && gunicorn netcop_hub.wsgi:application --bind 0.0.0.0:$PORT --workers 1 --timeout 60",
"restartPolicyType": "ON_FAILURE", "restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 3 "restartPolicyMaxRetries": 3
}, },