Railway Deployment
Railway Setup
1. Install Railway CLI
# macOS
brew install railway
# Or using npm
npm install -g @railway/cli
# Login
railway login
# Verify
railway whoami2. Initialize Project
# Create new project
railway init
# Or link existing
railway link3. Add Database
Environment Variables
Required Variables
Railway JSON Config
Database Setup
1. Create Database
2. Initialize the Schema
3. Seed Data (Optional)
Deploy
1. Deploy to Railway
2. View Deployment
3. Verify Deployment
Custom Domain
1. Add Domain
2. Configure DNS
3. SSL
Multiple Services
Service 1: Frontend (Next.js)
Service 2: API (FastAPI)
Troubleshooting
Build Failed
Service Not Starting
Database Connection
Custom Domain Not Working
Maintenance
Update Deployment
Rollback
Scale
Quick Reference
Last updated
