From 57fcccdab13bef8f247025d2583bf14485c5d70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=9D=80=EC=84=9D?= Date: Fri, 27 Feb 2026 20:53:41 +0900 Subject: [PATCH 1/3] fix(deploy): use direct uvicorn command instead of start.sh NIXPACKS builder doesn't include start.sh in the build artifact, causing "cannot open ./start.sh" errors on Railway. Co-Authored-By: Claude Opus 4.6 --- api/railway.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/railway.toml b/api/railway.toml index 9ad7f43..7760161 100644 --- a/api/railway.toml +++ b/api/railway.toml @@ -2,5 +2,5 @@ builder = "NIXPACKS" [deploy] -startCommand = "sh ./start.sh" +startCommand = "python -m uvicorn src.main:app --host 0.0.0.0 --port 8000" healthcheckPath = "/api/v1/health" From ab31b4f4f3111efd751c6771cd5380e1db6248d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=9D=80=EC=84=9D?= Date: Sat, 28 Feb 2026 11:13:12 +0900 Subject: [PATCH 2/3] fix(deploy): use $PORT env var and remove healthcheck temporarily Railway assigns PORT dynamically. Hardcoded 8000 causes healthcheck failure because Railway routes traffic to $PORT, not 8000. Remove healthcheck until first successful deployment is confirmed. Co-Authored-By: Claude Opus 4.6 --- api/railway.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/railway.toml b/api/railway.toml index 7760161..20677e5 100644 --- a/api/railway.toml +++ b/api/railway.toml @@ -2,5 +2,4 @@ builder = "NIXPACKS" [deploy] -startCommand = "python -m uvicorn src.main:app --host 0.0.0.0 --port 8000" -healthcheckPath = "/api/v1/health" +startCommand = "python -m uvicorn src.main:app --host 0.0.0.0 --port ${PORT:-8000}" From b8cc6f1209fcdc0c490eaa4a34b7574d66eba0f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=9D=80=EC=84=9D?= Date: Sat, 28 Feb 2026 11:20:16 +0900 Subject: [PATCH 3/3] fix(deploy): wrap start command in sh -c for env var expansion Railway's startCommand doesn't use shell expansion by default. Wrap in sh -c so $PORT is properly resolved at runtime. Co-Authored-By: Claude Opus 4.6 --- api/railway.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/railway.toml b/api/railway.toml index 20677e5..226b2e3 100644 --- a/api/railway.toml +++ b/api/railway.toml @@ -2,4 +2,4 @@ builder = "NIXPACKS" [deploy] -startCommand = "python -m uvicorn src.main:app --host 0.0.0.0 --port ${PORT:-8000}" +startCommand = "sh -c 'python -m uvicorn src.main:app --host 0.0.0.0 --port ${PORT:-8000}'"