Railway
1. Create railway.json
Section titled “1. Create railway.json”{ "build": { "builder": "DOCKERFILE" }, "deploy": { "restartPolicyType": "ALWAYS", "numReplicas": 2 }}2. Configure Environment
Section titled “2. Configure Environment”Set these environment variables in Railway dashboard:
| Variable | Description |
|---|---|
PORT |
Usually set automatically to 8080 |
RUST_LOG |
info |
DATABASE_URL |
PostgreSQL connection string |
REDIS_URL |
Redis connection string |
3. Deploy
Section titled “3. Deploy”railway loginrailway initrailway upOr connect via GitHub — Railway auto-deploys on push.
See Also
Section titled “See Also”- Fly.io — Deploy on Fly.io
- Docker — Container setup
- Production Checklist — Production readiness