File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11[build ]
22builder = " 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"
77healthcheckPath = " /"
88healthcheckTimeout = 300
99restartPolicyType = " on_failure"
Original file line number Diff line number Diff line change 11[build ]
22builder = " 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"
77healthcheckPath = " /"
88healthcheckTimeout = 300
99restartPolicyType = " on_failure"
You can’t perform that action at this time.
0 commit comments