From ca66ea71af500f9f66587db8ec4f1d4c60e54662 Mon Sep 17 00:00:00 2001 From: Eric0801 <33929918+Eric0801@users.noreply.github.com> Date: Sun, 19 Oct 2025 20:24:46 +0800 Subject: [PATCH] fix: correct startCommand in railway.json --- railway.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railway.json b/railway.json index 5944f09..e825a2b 100644 --- a/railway.json +++ b/railway.json @@ -5,7 +5,7 @@ "dockerfilePath": "Dockerfile" }, "deploy": { - "startCommand": "cd /flask && gunicorn -w 2 -b 0.0.0.0:8000 --timeout 120 main:app", + "startCommand": "gunicorn -w 2 -b 0.0.0.0:$PORT --timeout 120 --chdir /flask main:app", "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 }