# Parlo Styring Deployment Guide ## Coolify Dashboard The app is deployed via Coolify at the machinemachine.ai infrastructure. ## Auto-Deploy Pushes to `main` branch trigger automatic deployment via Forgejo webhook. ```bash # Make changes git add -A git commit -m "feat: new feature" git push origin main # → Coolify builds and deploys automatically ``` ## Manual Deploy If webhook fails, deploy manually via Coolify UI: 1. Go to Coolify dashboard 2. Find `parlo-styring` app 3. Click "Redeploy" ## Environment Updates To update environment variables: 1. Coolify dashboard → parlo-styring → Environment 2. Edit variables 3. Save & Redeploy ## Monitoring ### Health Check ```bash curl https://parlo.machinemachine.ai/api/health ``` ### Logs View in Coolify dashboard → parlo-styring → Logs ### Container Status ```bash # Via Coolify API or dashboard # Status should show: running:healthy ``` ## Rollback 1. Coolify dashboard → parlo-styring → Deployments 2. Find previous successful deployment 3. Click "Rollback" ## DNS / SSL - Domain: parlo.machinemachine.ai - SSL: Auto-managed by Traefik (Let's Encrypt) - Proxy: Traefik routes traffic to container port 3000 ## Troubleshooting ### 502 Bad Gateway - Container crashed or not started - Check Coolify logs - Verify health check passes ### Build Failures - Check build logs in Coolify - Common: dependency issues, TypeScript errors - Fix locally, push again ### Auth Issues - Verify `NEXTAUTH_URL` matches domain - Check `NEXTAUTH_SECRET` is set - Clear cookies and retry