From efdceb873086a1218a1f640e0c9e1f5cdf518718 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 4 Aug 2025 16:10:55 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20EMERGENCY:=20Remove=20destructiv?= =?UTF-8?q?e=20database=20flush=20from=20Railway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Critical production fix: - Remove 'python manage.py flush --noinput' from Railway startup - Prevent further database destruction on deployment - Current Railway database is completely empty (no agents, no users) - This fix will stop future data loss Next deployment will run populate_agents without wiping existing data. 🤖 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 4e2713a..0b8b20a 100644 --- a/railway.json +++ b/railway.json @@ -4,7 +4,7 @@ "builder": "NIXPACKS" }, "deploy": { - "startCommand": "python manage.py flush --noinput; python manage.py migrate --run-syncdb; python manage.py populate_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", + "startCommand": "python manage.py migrate; python manage.py populate_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 },