From 18d9f7c57cc5db197b036e7f0312694ead44b61e Mon Sep 17 00:00:00 2001 From: Priyanka Punukollu Date: Sun, 1 Mar 2026 00:51:40 -0600 Subject: [PATCH] =?UTF-8?q?fix:=20restore=20railway=20and=20nixpacks=20con?= =?UTF-8?q?fig=20to=20last=20known=20good=20state=20=E2=80=94=20revert=20b?= =?UTF-8?q?ad=20Node.js=20config=20that=20broke=20Python=20Railway=20deplo?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made-with: Cursor --- .node-version | 1 - .npmrc | 2 -- nixpacks.toml | 5 +---- railway.toml | 7 +++---- 4 files changed, 4 insertions(+), 11 deletions(-) delete mode 100644 .node-version delete mode 100644 .npmrc diff --git a/.node-version b/.node-version deleted file mode 100644 index 209e3ef4b..000000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -20 diff --git a/.npmrc b/.npmrc deleted file mode 100644 index b71e2abf3..000000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -engine-strict=false -legacy-peer-deps=true diff --git a/nixpacks.toml b/nixpacks.toml index 0c8c155c7..67ff69516 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,4 +1 @@ -providers = ["node"] - -[variables] -NIXPACKS_NODE_VERSION = "20" +providers = ["python"] diff --git a/railway.toml b/railway.toml index 459adf5c9..5ec9e6517 100644 --- a/railway.toml +++ b/railway.toml @@ -1,10 +1,9 @@ [build] builder = "nixpacks" -buildCommand = "npm ci --legacy-peer-deps && npx prisma generate && npm run build:production" [deploy] -startCommand = "npx prisma migrate deploy && npm run start" -healthcheckPath = "/api/v1/info" -healthcheckTimeout = 120 +startCommand = "uvicorn main:app --host 0.0.0.0 --port $PORT" +healthcheckPath = "/health" +healthcheckTimeout = 60 restartPolicyType = "ON_FAILURE" restartPolicyMaxRetries = 3