Skip to content

chore(railway): drop the root railway.toml; web and release-bot build from service settings - #299

Merged
jpr5 merged 1 commit into
mainfrom
chore/railway-root-config-to-settings
Nov 23, 2026
Merged

jpr5 merged 1 commit into
mainfrom
chore/railway-root-config-to-settings

Conversation

@jpr5

@jpr5 jpr5 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Why

Railway stops reading config-as-code files (railway.toml / railway.json) on 2026-12-01.

The repo-root railway.toml is the riskiest of them. Railway reads it for every service that has no Config file path set, and it names apps/web/Dockerfile. That is how outpost-release-bot built the web image on 11/23. It also blocks the rest of the migration: clearing a service's Config file path makes that service read the root file, so it builds the web image.

What

  • Delete the root railway.toml. outpost-web and outpost-release-bot already carry every setting it supplied (Dockerfile builder, apps/web/Dockerfile) in their service settings, in production and staging.
  • Document the per-service Railway settings that replace the files (docs/deployment.md, release-bot README, docs site).

The per-service railway.toml files stay for now. Each one is deleted in a follow-up PR after that service's settings are filled in and its Config file path is cleared. Deleting a file while its path is still set fails the build.

Red / green

Red (staging, 10:11 AM PST today): I cleared the Config file path on staging outpost-discord-bot, with dockerfilePath and RAILWAY_DOCKERFILE_PATH both set to apps/discord-bot/Dockerfile, and triggered a fresh build of the staging branch. That branch still has the root railway.toml. Deployment 10573754 reported configFile: /railway.toml and dockerfilePath: apps/web/Dockerfile. Its build log ran turbo prune @copilotkit/outpost-web. I rolled it back to its previous deployment at 10:15 AM PST, and it was healthy again.

Green: after this merges, outpost-web in production must rebuild with no config file (configFile: null) and still use apps/web/Dockerfile. Then each remaining service is moved to its settings and verified one at a time. The verification is in the comments below.

Checks

  • Format check on changed files: pass. Lint: pass. Typecheck: pass.
  • Tests: 4993/4994 pass locally. The one failure is classifier-backtracking.test.ts. It asserts empty stderr, and local Node 26 prints a DEP0205 deprecation warning there. CI runs Node 24, and this diff touches no code.
  • Local apps/web/Dockerfile build: pass.

… from service settings

Railway stops reading config-as-code files on 2026-12-01. The root
railway.toml is also read by every service that has no Config file
path set, and it names apps/web/Dockerfile, so it made outpost-release-bot
build the web image on 11/23 and does the same to any service whose path
is cleared. outpost-web and outpost-release-bot already carry every
setting it supplied (Dockerfile builder, apps/web/Dockerfile) in their
service settings.

The per-service railway.toml files stay until each service's settings
are filled in and its Config file path is cleared; deleting a file while
its path is still set fails the build.

Document the per-service settings that replace the files.
@jpr5
jpr5 merged commit 571d31b into main Nov 23, 2026
3 checks passed
@jpr5

jpr5 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Green, verified after merge (times in PST, 2026-11-23): outpost-web deployment ec9764d8 at 571d31b reports configFile: null and dockerfilePath: apps/web/Dockerfile. Its build ran turbo prune @copilotkit/outpost-web. https://outpost.copilotkit.ai/api/health returns 200 with database: connected (10:31 AM). outpost-release-bot was SKIPPED by its watch paths, as intended. Per-service results for the other services are in #300.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant