Skip to content

Deployment Overview

Deploying USL applications to production.

Deployment Options

USL applications can be deployed to:

  • Docker - Containerized deployment
  • Kubernetes - Orchestrated containers
  • Serverless - AWS Lambda, Google Cloud Functions, Azure Functions
  • Traditional VMs - Any Linux/Windows server
  • Platform-as-a-Service - Heroku, Render, Fly.io

Generated Assets

USL generates everything needed for deployment:

generated/
├── src/              # Application code
├── Dockerfile        # Docker configuration
├── k8s/              # Kubernetes manifests
│   ├── deployment.yaml
│   ├── service.yaml
│   └── ingress.yaml
├── terraform/        # Infrastructure as code
└── .github/
    └── workflows/
        └── deploy.yml

Quick Deploy

Docker

cd generated
docker build -t my-app .
docker run -p 3000:3000 my-app

Kubernetes

kubectl apply -f k8s/

Serverless

serverless deploy

Environment Variables

Configure via environment:

DATABASE_URL=postgresql://localhost/mydb
PORT=3000
NODE_ENV=production
JWT_SECRET=your-secret

Database Migrations

USL generates migration files:

npm run migrate

Monitoring

Generated apps include:

  • Health check endpoint: /health
  • Metrics endpoint: /metrics
  • OpenAPI spec: /api/openapi.yaml

Next Steps

Back to Index