You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hosting/railway/oss/README.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,15 +197,21 @@ The API image defaults to docker-compose hostnames for Redis (`redis-durable:638
197
197
198
198
### Build times on first deploy
199
199
200
-
First deploys on Railway take longer because Docker layer caches are cold. The app settle window (`RAILWAY_APP_SETTLE_SECONDS`, default 60) may not be enough on very slow builds. If smoke fails because services are still DEPLOYING, wait and re-run smoke manually.
200
+
First deploys on Railway take longer because Docker layer caches are cold. Deploy now relies mostly on readiness polling in smoke checks instead of fixed sleeps, so slower starts are less likely to fail prematurely.
201
+
202
+
For GitHub preview builds, CI now uses shared BuildKit registry cache tags (`buildcache-shared`) plus PR-scoped tags (`buildcache-pr-<number>`). It also builds API, web, and services images in parallel matrix jobs. This keeps repeated PR builds fast and also improves first builds on new PRs by reusing layers from previous runs. Manual workflow dispatches without a PR number use `manual-<sha>` image tags and skip deploy.
201
203
202
204
### Smoke check options
203
205
204
206
The smoke script supports these environment variables:
205
207
206
-
-`SMOKE_MAX_RETRIES` (default `30`) - retries per endpoint
207
-
-`SMOKE_SLEEP_SECONDS` (default `10`) - sleep between retries
For CI, consider `SMOKE_AUTO_REPAIR=false` to get clean pass/fail signals without side effects.
211
217
@@ -252,7 +258,8 @@ the deploy flow grows or back-to-back deploys hit the 1,000 RPH Hobby ceiling.
252
258
253
259
## Notes
254
260
255
-
- This fast-start flow keeps auth minimal (`AGENTA_LICENSE=oss`) and does not wire CI yet.
261
+
- This fast-start flow keeps auth minimal (`AGENTA_LICENSE=oss`).
262
+
- CI is wired for Railway preview environments via `.github/workflows/06-railway-preview-build.yml`, `.github/workflows/07-railway-preview-deploy.yml`, and `.github/workflows/08-railway-preview-cleanup.yml`.
256
263
- Postgres and Redis are provisioned as image-backed services with explicit volume mounts.
257
264
- Redis now gets a `/data` volume during bootstrap for persistence.
258
265
-`configure.sh` sets `RAILWAY_RUN_UID=0` and `RAILWAY_RUN_GID=0` on the Redis
0 commit comments