quantum-ai/railway.json
Claude b34d7ad175 🚀 Add migrations back to Railway startup with production-ready configuration
- Restore database migrations to startup process with --run-syncdb flag
- Add agents population and static file collection to deployment
- Increase health check timeout to 90s for migration time
- Add health check back with 15s intervals for better monitoring
- Create comprehensive migration strategy documentation
- Add Railway final setup guide with quantum-ai.up.railway.app URLs

Key improvements:
 Fault-tolerant migration process (continues on warnings)
 Automatic database setup on deployment
 Health monitoring restored for production readiness
 Complete documentation for maintenance and troubleshooting

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-26 13:24:26 +05:30

14 lines
512 B
JSON

{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "python manage.py migrate --run-syncdb; python manage.py populate_agents; 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,
"healthcheckPath": "/health/",
"healthcheckTimeout": 90,
"healthcheckInterval": 15
}
}