Platform Support
| Platform | Use Case |
|---|---|
| Railway | Recommended for managed PostgreSQL and Redis |
| Vercel | Frontend-focused deployments |
| Docker | Self-hosted, full control |
| AWS SAM | Serverless with AWS integrations |
Deploy Command
Basic Deploy
railway.json→ Railwayvercel.json→ Verceldocker-compose.yml→ Dockertemplate.yaml→ AWS SAM
Specify Platform
Environment
Deploy to a specific environment:| Environment | Description |
|---|---|
production | Live environment (default) |
staging | Pre-production testing |
preview | Pull request previews |
Deployment Options
| Flag | Description |
|---|---|
--platform <name> | Override auto-detection |
--env <environment> | Target environment |
--dry-run | Preview without deploying |
--skip-build | Skip build step |
--skip-migrations | Skip database migrations |
Dry Run
Preview what would be deployed:- Files to be deployed
- Environment variables
- Build commands
- Migration scripts
Platform-Specific Details
Railway
Railway is recommended for Consuelo deployments due to built-in PostgreSQL and Redis.railway.json— Railway configurationDockerfile— Container definition
TWILIO_ACCOUNT_SIDTWILIO_AUTH_TOKENTWILIO_PHONE_NUMBERGROQ_API_KEYorOPENAI_API_KEY
See Deploy to Railway for a
detailed walkthrough.
Vercel
Best for frontend-heavy deployments.vercel.json— Vercel configuration.vercelignore— Exclude patterns
Docker
Full self-hosted deployment.docker-compose.yml— Service orchestrationDockerfile— Container definition.dockerignore— Exclude patterns
- API server
- Worker (background jobs)
- PostgreSQL
- Redis
AWS SAM
Serverless deployment to AWS.template.yaml— SAM templatesamconfig.toml— SAM configurationlambda.js— Lambda entry point
- Lambda functions
- API Gateway
- RDS PostgreSQL (optional)
- ElastiCache Redis (optional)
Database Migrations
Migrations run automatically during deployment unless skipped.Run Migrations Only
Rollback
Migration Status
CI/CD Integration
GitHub Actions
GitLab CI
Troubleshooting
Build Failures
Migration Failures
Environment Variables
Missing environment variables cause deployment failures. Verify:Next Steps
- Deploy to Railway — Detailed Railway guide
- Configuration — Set up environment variables
- CLI FAQ — Common deployment issues