🔑 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>
This commit is contained in:
Claude 2025-07-26 22:19:03 +05:30
parent 8109c6a693
commit 737611969c

View File

@ -4,7 +4,7 @@
"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",
"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
}