Railway is a newer, developer-friendly platform-as-a-service made by Railway Corp, tied for #42 among cloud platforms in developer surveys at roughly 1.5% usage share. It aims to bring back the simplicity Heroku once had โ deploying a full-stack app together with a managed database in a few clicks or one CLI command โ but with a modern dashboard and a generous free starter tier. It's freemium, with usage-based pricing beyond the free allowance.
Link a local project to a Railway service, then deploy straight from your terminal without needing a Procfile or Dockerfile.
# link this local folder to a Railway project
railway link
# deploy the current directory
railway up
# open a shell with your project's env vars injected,
# useful for running migrations against the linked database
railway run npm run migrate
Install the CLI, log in through the browser, then link or create a project from inside your repo.
# install the Railway CLI
npm install -g @railway/cli
# authenticate (opens a browser login)
railway login
# initialize a new project in the current folder
railway init