Repository navigation
Add Railway hosted deploy via Infrastructure as Code - #504
Merged
Merged
Conversation
innoavator
requested review from
bhaveshpatel640,
chiragjn,
debajyoti-truefoundry,
heerambavi1998,
sr07asthana and
thesujai
as code owners
August 30, 2026 08:18
🦋 Changeset detectedLatest commit: 02a30d6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 02a2979. Configure here.
chiragjn
approved these changes
Aug 31, 2026
chiragjn
force-pushed
the
deploy-railway
branch
from
August 31, 2026 11:30
77dd347 to
02a30d6
Compare
chiragjn
enabled auto-merge (squash)
August 31, 2026 11:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Add a one-project Railway hosted deploy (app + Postgres + Redis) using Railway Infrastructure as Code, so others can provision TrueForge on their own Railway account from this repo.
Also accept
DATABASE_URLin hosted mode so managed Postgres (Railway and similar) can be wired without discretePOSTGRES_*vars.Changes
.railway/railway.ts+.railway/README.md(IaC:trueforgeservice, Postgres, Redis, healthcheck,Dockerfile.dev)DATABASE_URLwhenSTANDALONE=false(changeset for@truefoundry/trueforge)type=cachemounts fromDockerfile.dev(Railway Metal requires a hardcoded service id in mount ids)HOST=0.0.0.0/STANDALONE=falseintoDockerfile.devfor container deploysrailwayas a root devDependency forrailway/iacimportsHow was this tested?
railway config apply, public domain, app healthy on/healthzpnpm build,pnpm test,pnpm typecheck,pnpm lint:ci,pnpm format:check(confirm locally / CI)Checklist
pnpm build,pnpm test,pnpm typecheck,pnpm lint:ci, andpnpm format:checkpass locallypackages/trueforge-sdk,.github/fern/openapi/openapi.json,docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge.env.exampleupdated if configuration or behavior changedNote
Medium Risk
Hosted-mode DB resolution changed (new
DATABASE_URLprecedence); misconfiguration could break Postgres connectivity, and Railway defaults ship without OIDC on a public URL.Overview
Adds Railway as a hosted deployment path via
.railway/railway.ts(app + Postgres + Redis,Dockerfile.dev, healthcheck, env wiring forDATABASE_URL,REDIS_URL, andPUBLIC_BASE_URL). README, Quickstart, and auth docs now list Railway alongside Compose and Helm.Hosted Postgres config now prefers
DATABASE_URLwhenSTANDALONE=false, falling back toPOSTGRES_*(documented in.env.example; patch changeset for@truefoundry/trueforge).Dockerfile.devdrops BuildKit cache mounts for Railway Metal compatibility and bakesHOST=0.0.0.0andSTANDALONE=falsefor container deploys. RootrailwaydevDependency and ESLint ignore for.railway/**support the IaC workflow.Reviewed by Cursor Bugbot for commit 02a30d6. Bugbot is set up for automated code reviews on this repo. Configure here.