mirror of
https://github.com/thecyberlearn/quantum-ai-v3.git
synced 2026-08-18 17:52:57 +00:00
🔑 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:
parent
8109c6a693
commit
737611969c
@ -4,7 +4,7 @@
|
|||||||
"builder": "NIXPACKS"
|
"builder": "NIXPACKS"
|
||||||
},
|
},
|
||||||
"deploy": {
|
"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",
|
"restartPolicyType": "ON_FAILURE",
|
||||||
"restartPolicyMaxRetries": 3
|
"restartPolicyMaxRetries": 3
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user