Railway

Run servers, workers and databases side by side, billed per second.

Limited free Usage-based app platform (containers)

Short answer

Free tier: Free Trial: $5 one-time credit for 30 days; then Free plan with $1/month of usage. Paid from: $5/mo. Runs: static sites, server-side rendering, always-on servers. Best for: Apps with a real backend (Express, FastAPI, bots), apps that need a database next to them.

Security advisory, 4 Nov 2026

From 4 Nov 2026 some networks blocked Railway IP addresses after forged scanning traffic, so apps timed out for some users. Railway closed the incident on 9 Nov; if one network still can't reach your app, that network has to lift its block. Read the advisory: Railway IP blocks

Security advisory, 21 Oct 2026

Security incident, October 2026: Railway disclosed that customer environment variables may have been accessed. If you have a project on Railway, rotate its secrets. Read the advisory: Railway incident

Free tier

Free Trial: $5 one-time credit for 30 days; then Free plan with $1/month of usage

  • Free Trial: $5 one-time credit, valid 30 days, no credit card required
  • Free plan: $0 with $1/month usage credit, 1 project, 3 services, 1 vCPU / 0.5 GB per service
  • Free plan: 0 custom domains (Trial: 1)
  • Usage: ≈$10 per GB RAM/month, ≈$20 per vCPU/month, egress $0.05/GB (billed per second)

Paid plans

$5/mo: Hobby: $5/month including $5 of usage, 2 custom domains, 50 projects. Pro: $20/month per workspace

What are the catches?

  • The Free plan can't attach a custom domain — budget for Hobby ($5/mo) if you want your own domain.

Deploying to Railway

Connect
Go to railway.com/new → Deploy from GitHub repo, connect GitHub and choose the repository. Railway detects the build automatically.
Build
A Vite SPA is served as static files; a Node/Python server needs a start command and must listen on $PORT.
Env vars
Service → Variables tab (frontend VITE_* values must be present at build time)
Domain
Service → Settings → Networking → + Custom Domain. Railway gives you a CNAME to add at your DNS provider and issues SSL automatically.

Single-page app fallback

Caddyfile (or serve -s dist)
:{$PORT:3000} {
    root * dist
    encode gzip
    file_server
    try_files {path} /index.html
}

Official docs (opens in a new tab)

Guides for Railway

Common errors on Railway

Related guides

Common questions

Does Railway have a free tier?

A limited one. Free Trial: $5 one-time credit for 30 days; then Free plan with $1/month of usage.

How much does Railway cost?

Paid plans start at $5/mo. Hobby: $5/month including $5 of usage, 2 custom domains, 50 projects. Pro: $20/month per workspace. Checked 17 Oct 2026 on Railway's pricing page.

Can Railway run a backend server?

Yes. Railway runs static sites, server-side rendering, always-on servers, so websockets, bots and background jobs work.

Can I use the Railway free tier for a commercial app?

Unverified. We couldn't confirm it on an official Railway page, so check its terms before launching a paid product.