mirror of
https://github.com/thecyberlearn/quantum-ai-v3.git
synced 2026-08-18 16:52:58 +00:00
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>
20 lines
688 B
JSON
20 lines
688 B
JSON
{
|
|
"$schema": "https://railway.app/railway.schema.json",
|
|
"build": {
|
|
"builder": "NIXPACKS"
|
|
},
|
|
"deploy": {
|
|
"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",
|
|
"restartPolicyMaxRetries": 3
|
|
},
|
|
"environments": {
|
|
"production": {
|
|
"variables": {
|
|
"DEBUG": "False",
|
|
"DEPLOYMENT_ENVIRONMENT": "production",
|
|
"BRANCH_NAME": "main"
|
|
}
|
|
}
|
|
}
|
|
} |