diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index 85ee96c..bea2162 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -29,6 +29,29 @@ git push origin main && git push gitea main **NICHT MEHR NOETIG:** Manuelles `ssh macmini "docker compose build"` fuer Production. **NIEMALS** manuell in Coolify auf "Redeploy" klicken — Gitea Actions triggert Coolify automatisch. +### Post-Push Deploy-Monitoring (PFLICHT nach jedem Push auf gitea) + +**IMMER wenn Claude auf gitea pusht, MUSS danach automatisch das Deploy-Monitoring laufen:** + +1. Dem User sofort mitteilen: "Deploy gestartet, ich ueberwache den Status..." +2. Im Hintergrund Health-Checks pollen (alle 20 Sekunden, max 5 Minuten): + ```bash + # Compliance Health-Endpoints: + curl -sf https://api-dev.breakpilot.ai/health # Backend Compliance + curl -sf https://sdk-dev.breakpilot.ai/health # AI Compliance SDK + ``` +3. Sobald ALLE Endpoints healthy sind, dem User im Chat melden: + **"Deploy abgeschlossen! Du kannst jetzt testen: https://admin-dev.breakpilot.ai"** +4. Falls nach 5 Minuten noch nicht healthy → Fehlermeldung mit Hinweis auf Coolify-Logs. + +**Ablauf im Terminal:** +``` +> git push gitea main ✓ +> "Deploy gestartet, ich ueberwache den Status..." +> [Hintergrund-Polling laeuft] +> "Deploy abgeschlossen! Alle Services healthy. Du kannst jetzt testen." +``` + ### CI/CD Pipeline (Gitea Actions → Coolify) ```