graphiti/railway.json
Tyler Lafleur c76ac66bdd Fix Railway port configuration: remove hardcoded port, let Railway set PORT
PROBLEM FIXED:
Railway was showing hardcoded --port 8000 in start command, causing port mismatch.
Railway expects apps to listen on PORT environment variable (8080).

SOLUTION:
- Updated railway.json start command to include --host 0.0.0.0
- Explicitly removed any --port argument
- Let Railway set PORT via environment variable

RESULT:
MCP server will now listen on Railway's assigned port (8080) instead of
hardcoded 8000, fixing the 502 error and enabling ChatGPT SSE access.

🚀 Generated with Claude Code (https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 21:03:25 -05:00

11 lines
No EOL
316 B
JSON

{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"buildCommand": "cd mcp_server && uv sync"
},
"deploy": {
"startCommand": "cd mcp_server && uv run graphiti_mcp_server.py --transport sse --host 0.0.0.0",
"restartPolicyType": "on_failure",
"restartPolicyMaxRetries": 10
}
}