From 67c0003536cbf810837c440a3a8d89274a915560 Mon Sep 17 00:00:00 2001 From: "railway-app[bot]" <68434857+railway-app[bot]@users.noreply.github.com> Date: Thu, 25 Jun 2026 08:17:01 +0000 Subject: [PATCH] fix: wrap startCommand in sh -c to expand $PORT variable --- railway.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railway.json b/railway.json index 66328f6..cb9e5a4 100644 --- a/railway.json +++ b/railway.json @@ -5,7 +5,7 @@ "dockerfilePath": "Dockerfile" }, "deploy": { - "startCommand": "uvicorn src.api.main:app --host 0.0.0.0 --port $PORT", + "startCommand": "/bin/sh -c \"uvicorn src.api.main:app --host 0.0.0.0 --port $PORT\"", "healthcheckPath": "/health", "healthcheckTimeout": 30, "restartPolicyType": "ON_FAILURE",