From 737611969cd7898397aff9c70f1aaca56a0733d5 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 26 Jul 2025 22:19:03 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=91=20Add=20automatic=20admin=20user?= =?UTF-8?q?=20creation=20to=20Railway=20deployment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- railway.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railway.json b/railway.json index f1ffb3f..d2a7073 100644 --- a/railway.json +++ b/railway.json @@ -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 }