quantum-ai-v2/railway.json
Claude be6a04c60b 🔧 Add simple agent fix command for Railway deployment
• Create minimal management command to fix agent values
• Fix CyberSec Career Navigator: 12 AED → 0 AED
• Fix 5 Whys agent: 50 messages → 20 messages, ensure 15 AED
• Add to Railway deployment process for automatic fix
• Simplest possible solution - runs on every deploy

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

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

20 lines
730 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 fix_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"
}
}
}
}