Skip to content

railway

Use when deploying applications to Railway — GitHub deploys, Railway CLI, one-click databases (Postgres, MySQL, MongoDB, Redis), environment management, multi-service projects. Also use when comparing deployment platforms for backend services.

ModelSource
sonnetpack: deploy
ScenarioPlatform
Full-stack app + persistent databaseRailway
Serverless/JAMstack frontendVercel
Edge workers, global CDNCloudflare
Container-first, custom infraDocker + self-host
Full Reference

┏━ 🚀 railway ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when deploying to Railway — full-stack, ┃ ┃ databases, multi-service, per-utilization ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

Railway is a cloud platform for full-stack deployments. GitHub push-to-deploy, auto-detected builds via Railpack, one-click databases, private networking between services, and per-second resource billing. The “real server with a database” answer when Vercel’s serverless model doesn’t fit.

ItemValue
CLI Installnpm i -g @railway/cli or brew install railway
Docshttps://docs.railway.com
Authrailway login (browser OAuth)
Deploy current dirrailway up
Run with env varsrailway run <command>
Stream logsrailway logs
Key env varsRAILWAY_PUBLIC_DOMAIN, RAILWAY_PRIVATE_DOMAIN, RAILWAY_ENVIRONMENT
ScenarioPlatform
Full-stack app + persistent databaseRailway
Serverless/JAMstack frontendVercel
Edge workers, global CDNCloudflare
Container-first, custom infraDocker + self-host
I want to…File
Install CLI, link a project, initialize, first deployreference/setup.md
railway up, GitHub deploys, Dockerfile, Railpack, railway.tomlreference/deployment.md
Add Postgres/MySQL/MongoDB/Redis, connection strings, volumesreference/databases.md
Create environments, variable inheritance, PR environments, secretsreference/environments.md
Multi-service projects, private networking, TCP proxy, service depsreference/services.md
Hobby vs Pro pricing, usage rates, cost estimationreference/pricing.md

Usage: Read the reference file matching your task. Each file is self-contained with commands and gotchas.