-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrailway.toml
More file actions
20 lines (18 loc) · 688 Bytes
/
railway.toml
File metadata and controls
20 lines (18 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Railway configuration for xNet Demo Hub
#
# This file must be at the repo root because the Dockerfile
# expects to build from monorepo context (copies multiple packages).
#
# Deploy: Railway auto-deploys on push to main
# Docs: https://docs.railway.app/reference/config-as-code
[build]
builder = "dockerfile"
dockerfilePath = "packages/hub/Dockerfile"
[deploy]
# Railway sets $PORT env var - must pass it to the CLI
# Use sh -c to get shell features (cd, $PORT expansion)
startCommand = "sh -c 'cd /app && node packages/hub/dist/cli.js --port $PORT --data /data --demo'"
healthcheckPath = "/health"
healthcheckTimeout = 30
restartPolicyType = "on_failure"
restartPolicyMaxRetries = 5