Deployment
Azure Deployment (Recommended)
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.appCI/CD Pipeline
- Install dependencies (
pnpm install) - Generate Prisma client
- Run migrations (
prisma migrate deploy) - Build the API (
nest build) - Deploy to Azure App Service
Docker
docker build -t arkan-api -f apps/api/Dockerfile .
docker run -p 3001:3001 --env-file .env arkan-apiLast updated on