Skip to content

Commit f8ed528

Browse files
committed
chore: split Railway configs for example/docs deploys
1 parent af63d8a commit f8ed528

3 files changed

Lines changed: 18 additions & 4 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ DatabaseChat lets users ask questions about your data in plain English. The LLM
1616
- [Building the UI](#building-the-ui)
1717
- [Patterns](#patterns)
1818
- [API Reference](#api-reference)
19+
- [Railway Deployments](#railway-deployments)
1920
- [Testing](#testing)
2021

2122
---
@@ -1178,6 +1179,19 @@ sees them.
11781179

11791180
---
11801181

1182+
## Railway Deployments
1183+
1184+
This repo hosts two Railway services, each with its own config file:
1185+
1186+
- Example app: Root Directory `/example`, Railway Config File `/example/railway.toml`
1187+
- Docs site: Root Directory `/docs`, Railway Config File `/docs/railway.toml`
1188+
1189+
Note: Railway does not automatically follow the Root Directory when selecting a
1190+
config file, so you must set the absolute config path per service. A root
1191+
`railway.toml` is intentionally not used.
1192+
1193+
---
1194+
11811195
## Testing
11821196

11831197
```bash

docs/railway.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[build]
22
builder = "railpack"
3-
buildCommand = "corepack enable && cd docs && pnpm install --frozen-lockfile && pnpm build"
3+
buildCommand = "corepack enable && pnpm install --frozen-lockfile && pnpm build"
44

55
[deploy]
6-
startCommand = "cd docs && pnpm start"
6+
startCommand = "pnpm start"
77
healthcheckPath = "/"
88
healthcheckTimeout = 300
99
restartPolicyType = "on_failure"

railway.toml renamed to example/railway.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[build]
22
builder = "railpack"
3-
buildCommand = "cd example && npm install && npm run build"
3+
buildCommand = "npm install && npm run build"
44

55
[deploy]
6-
startCommand = "cd example && npm run start"
6+
startCommand = "npm run start"
77
healthcheckPath = "/"
88
healthcheckTimeout = 300
99
restartPolicyType = "on_failure"

0 commit comments

Comments
 (0)