From 30236c00019ede83ac9efaf775b2c69f638bb3f1 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Fri, 13 Mar 2026 13:39:12 +0100 Subject: [PATCH] docs: add post-push deploy monitoring to CLAUDE.md After every push to gitea, Claude now automatically polls health endpoints and notifies the user when the deployment is ready for testing. Co-Authored-By: Claude Opus 4.6 --- .claude/CLAUDE.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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) ```