quantum-ai-v3/railway.json
Claude 40574db8b0 🗃️ Implement complete Railway database recreation
• Add database flush to Railway startup for complete reset
• Remove manual fix scripts - using clean recreation approach
• Fresh database will have correct agent values from populate_agents
• Guarantees Railway matches local environment exactly

Process:
1. flush --noinput (clear all data)
2. migrate --run-syncdb (create fresh tables)
3. populate_agents (correct agent values)
4. reset_admin (fresh admin user)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-03 14:57:49 +05:30

20 lines
735 B
JSON

{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"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",
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 3
},
"environments": {
"production": {
"variables": {
"DEBUG": "False",
"DEPLOYMENT_ENVIRONMENT": "production",
"BRANCH_NAME": "main"
}
}
}
}