Skip to content

Commit 435c4e3

Browse files
committed
fix: give the MCP service its own railway.json so it builds mcp-server/Dockerfile
The repo-root railway.json is backend-specific (dockerfilePath: backend/Dockerfile). Railway feeds it to both services by default, so the MCP service was building the backend image and running `uvicorn main:app` -- but mcp-server/ has no main.py, only server.py. Every MCP deploy since #296 crashed at boot ("Could not import module main") and failed healthcheck, leaving the service frozen on a 2-month-old image. This adds a dedicated mcp-server/railway.json (build mcp-server/Dockerfile, healthcheck /health) so the two services stop sharing one backend-shaped config. Activation: set the MCP service's config-as-code path to mcp-server/railway.json in the Railway dashboard; the backend service keeps reading the repo-root railway.json.
1 parent 8afb4e5 commit 435c4e3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

mcp-server/railway.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://railway.app/railway.schema.json",
3+
"build": {
4+
"builder": "DOCKERFILE",
5+
"dockerfilePath": "mcp-server/Dockerfile",
6+
"buildContext": "mcp-server"
7+
},
8+
"deploy": {
9+
"restartPolicyType": "ON_FAILURE",
10+
"restartPolicyMaxRetries": 10,
11+
"healthcheckPath": "/health",
12+
"healthcheckTimeout": 300
13+
}
14+
}

0 commit comments

Comments
 (0)