Skip to Content
Deployment

Deployment

Environment Variables

DATABASE_URL=postgresql://owner:pass@host:5432/arkan?sslmode=require RUNTIME_DATABASE_URL=postgresql://app_user:pass@host:5432/arkan?sslmode=require JWT_ACCESS_SECRET=your-secret-min-32-chars PORT=3001 NODE_ENV=production FRONTEND_URL=https://app.arkan.app

CI/CD Pipeline

  1. Install dependencies (pnpm install)
  2. Generate Prisma client
  3. Run migrations (prisma migrate deploy)
  4. Build the API (nest build)
  5. Deploy to Azure App Service

Docker

docker build -t arkan-api -f apps/api/Dockerfile . docker run -p 3001:3001 --env-file .env arkan-api
Last updated on