Railway
Railway provides easy deployment with automatic builds from Git.
Quick Deploy
Section titled “Quick Deploy”- Push your code to GitHub
- Connect Railway to your repository
- Railway auto-detects Node.js and deploys
Configuration
Section titled “Configuration”Create railway.json:
{ "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS" }, "deploy": { "startCommand": "pnpm prisma migrate deploy && node dist/index.js", "healthcheckPath": "/api/health", "healthcheckTimeout": 30 }}Environment Variables
Section titled “Environment Variables”Set in Railway dashboard:
NODE_ENV=productionDATABASE_URL=${{Postgres.DATABASE_URL}}JWT_SECRET=your-secretJWT_REFRESH_SECRET=your-refresh-secretAdd PostgreSQL
Section titled “Add PostgreSQL”- Click “New Service” in Railway
- Select “Database” → “PostgreSQL”
- Railway auto-links
DATABASE_URL
Custom Domain
Section titled “Custom Domain”- Go to Settings → Domains
- Add your custom domain
- Update DNS with provided CNAME
Next Steps
Section titled “Next Steps”- Render - Alternative PaaS
- Production Checklist - Full checklist