Deployment
Learn how to deploy your Yama applications to various platforms.
Quick Deploy
Yama applications can be deployed to any platform that supports Node.js:
- Serverless - Vercel, Netlify, AWS Lambda
- Containers - Docker, Kubernetes
- Traditional - VPS, Cloud providers
Build for Production
Before deploying, build your application:
yama buildThis creates an optimized production build in the dist/ directory.
Deployment Options
Serverless Platforms
Deploy to serverless platforms for automatic scaling:
- Vercel - Zero-config serverless deployment
- AWS Lambda - AWS Lambda functions
- Netlify - Coming soon
Container Platforms
Deploy using Docker containers:
- Docker - Container-based deployment
- Kubernetes - Coming soon
Environment Variables
Configure environment variables for your deployment:
DATABASE_URL=postgresql://...
JWT_SECRET=your-secret-key
NODE_ENV=productionDatabase Migrations
Run migrations before deploying:
yama schema:applyOr configure automatic migrations in your deployment pipeline.
Health Checks
Yama provides health check endpoints:
GET /health- Application healthGET /ready- Readiness checkGET /live- Liveness check
Use these for Kubernetes readiness/liveness probes.
Next Steps
Choose your deployment platform and follow the specific guide:
Last updated on