quantum-ai-v3/railway.json
Claude 737611969c 🔑 Add automatic admin user creation to Railway deployment
- Add admin creation to railway.json startup command
- Creates superuser admin@quantumtaskai.com during deployment
- Revert local .env to SQLite for safe development
- Admin will be created directly in Railway PostgreSQL

Admin Credentials:
- Email: admin@quantumtaskai.com
- Username: admin
- Password: QuantumAI2024!
- Balance: 100 AED

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-26 22:19:03 +05:30

11 lines
536 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 create_user admin@quantumtaskai.com QuantumAI2024! --username admin --superuser --balance 100 || 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
}
}