diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md index f13d08c..6c04df8 100644 --- a/.claude/CLAUDE.md +++ b/.claude/CLAUDE.md @@ -47,7 +47,7 @@ Add the marker anywhere in the commit message body or footer — the CI job does |--------|-------|----------| | **MacBook** | Entwicklung | Claude Terminal, Code-Entwicklung, Browser (Frontend-Tests) | | **Mac Mini** | Lokaler Server | Docker fuer lokale Dev/Tests (NICHT fuer Production!) | -| **Orca** | Production | Automatisches Build + Deploy bei Push auf gitea | +| **Orca** | Production | Automatisches Build + Deploy bei Push auf origin | **WICHTIG:** Code wird auf dem MacBook bearbeitet. Production-Deployment laeuft automatisch ueber Orca. @@ -55,10 +55,10 @@ Add the marker anywhere in the commit message body or footer — the CI job does ```bash # 1. Code auf MacBook bearbeiten (dieses Verzeichnis) -# 2. Committen und zu BEIDEN Remotes pushen: +# 2. Committen und pushen: git push origin main -# 3. FERTIG! Push auf gitea triggert automatisch: +# 3. FERTIG! Push auf origin triggert automatisch: # - Gitea Actions: Lint → Tests → Validierung # - Orca: Build → Deploy # Dauer: ca. 3 Minuten @@ -68,9 +68,9 @@ git push origin main **NICHT MEHR NOETIG:** Manuelles `ssh macmini "docker compose build"` fuer Production. **NIEMALS** manuell in Orca auf "Redeploy" klicken — Gitea Actions triggert Orca automatisch. -### Post-Push Deploy-Monitoring (PFLICHT nach jedem Push auf gitea) +### Post-Push Deploy-Monitoring (PFLICHT nach jedem Push) -**IMMER wenn Claude auf gitea pusht, MUSS danach automatisch das Deploy-Monitoring laufen:** +**IMMER wenn Claude auf origin 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): @@ -94,7 +94,7 @@ git push origin main ### CI/CD Pipeline (Gitea Actions → Orca) ``` -Push auf gitea main → go-lint/python-lint/nodejs-lint (nur PRs) +Push auf origin main → go-lint/python-lint/nodejs-lint (nur PRs) → test-go-ai-compliance → test-python-backend-compliance → test-python-document-crawler @@ -271,12 +271,10 @@ curl -sf https://sdk-dev.breakpilot.ai/health ### Git ```bash -# Zu BEIDEN Remotes pushen (PFLICHT! — vom MacBook): git push origin main -# Remotes: -# origin: lokale Gitea (macmini:3003) - +# Remote: +# origin: ssh://git@coolify.meghsakha.com:22222/Benjamin_Boenisch/breakpilot-compliance.git ``` ### Lokale Docker-Befehle (Mac Mini — nur fuer Dev/Tests) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 92edbfd..5874e2f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,7 +5,7 @@ ## 1. Getting Started ```bash -git clone https://gitea.meghsakha.com/Benjamin_Boenisch/breakpilot-compliance.git +git clone ssh://git@coolify.meghsakha.com:22222/Benjamin_Boenisch/breakpilot-compliance.git cd breakpilot-compliance git checkout coolify # always base work off coolify, NOT main ``` diff --git a/README.md b/README.md index 9b58e25..de6313f 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ All containers share the external `breakpilot-network` Docker network and depend **Prerequisites:** Docker, Go 1.24+, Python 3.12+, Node.js 20+ ```bash -git clone https://gitea.meghsakha.com/Benjamin_Boenisch/breakpilot-compliance.git +git clone ssh://git@coolify.meghsakha.com:22222/Benjamin_Boenisch/breakpilot-compliance.git cd breakpilot-compliance # Copy and populate secrets (never commit .env) @@ -71,10 +71,10 @@ Work on the `coolify` branch. Push to **both** remotes to trigger CI and deploy: ```bash git checkout coolify # ... make changes ... -git push origin coolify && git push gitea coolify +git push origin coolify ``` -Push to `gitea` triggers: +Push to `origin` triggers: 1. **Gitea Actions** — lint → test → validate (see CI Pipeline below) 2. **Coolify** — automatic build + deploy (~3 min total) diff --git a/ai-compliance-sdk/docs/DEVELOPER.md b/ai-compliance-sdk/docs/DEVELOPER.md index 7d65394..a74d8e1 100644 --- a/ai-compliance-sdk/docs/DEVELOPER.md +++ b/ai-compliance-sdk/docs/DEVELOPER.md @@ -38,7 +38,7 @@ go build -o server ./cmd/server ./server --config config.yaml # Production: CI/CD (automatisch bei Push auf main) -git push origin main && git push gitea main +git push origin main # → Gitea Actions: Tests → Build → Deploy auf Orca # → Status: https://gitea.meghsakha.com/Benjamin_Boenisch/breakpilot-compliance/actions diff --git a/docs-src/development/ci-cd-pipeline.md b/docs-src/development/ci-cd-pipeline.md index 5d7e4c6..20994ed 100644 --- a/docs-src/development/ci-cd-pipeline.md +++ b/docs-src/development/ci-cd-pipeline.md @@ -24,7 +24,7 @@ Uebersicht ueber den Deployment-Prozess fuer BreakPilot Compliance. │ ├── developer-portal/ (Next.js) │ │ └── docs-src/ (MkDocs) │ │ │ -│ git push origin main && git push gitea main │ +│ git push origin main │ └───────────────────────────────┬─────────────────────────────────┘ │ │ git push @@ -63,12 +63,12 @@ Uebersicht ueber den Deployment-Prozess fuer BreakPilot Compliance. ```bash # Code auf MacBook bearbeiten # Committen und zu beiden Remotes pushen: -git push origin main && git push gitea main +git push origin main ``` ### 2. Automatische Tests (Gitea Actions) -Push auf gitea triggert automatisch die CI-Pipeline: +Push auf origin triggert automatisch die CI-Pipeline: - **Go Tests:** `ai-compliance-sdk` Unit Tests - **Python Tests:** `backend-compliance`, `document-crawler`, `dsms-gateway` diff --git a/docs-src/development/rag-pipeline-lessons-learned.md b/docs-src/development/rag-pipeline-lessons-learned.md index 25aaf7e..80eb6a8 100644 --- a/docs-src/development/rag-pipeline-lessons-learned.md +++ b/docs-src/development/rag-pipeline-lessons-learned.md @@ -207,7 +207,7 @@ Runtime-Betrieb: Qdrant-RAG für semantische Suche, Chat, Scope-Analyse 2. Mac Mini: Control-Generierung → PostgreSQL (shared, 46.225.100.82:54321) 3. QA: PDF-Match, Dedup, Source-Normalisierung 4. Qdrant Migration: macmini:6333 → qdrant-dev.breakpilot.ai (scripts/migrate-qdrant.py) -5. Deploy: git push gitea → Orca Build + Deploy +5. Deploy: → Orca Build + Deploy ``` **WICHTIG:** PostgreSQL ist SHARED — Änderungen auf Mac Mini sind sofort in Production sichtbar. Qdrant hat getrennte Instanzen (lokal + production) und muss manuell synchronisiert werden. diff --git a/docs-src/index.md b/docs-src/index.md index 1e97b7c..9e4d3fb 100644 --- a/docs-src/index.md +++ b/docs-src/index.md @@ -92,7 +92,7 @@ Module die Compliance-Kunden im SDK sehen und nutzen: ```bash # Production (Orca — Standardweg): -git push origin main && git push gitea main +git push origin main # Orca baut und deployt automatisch. # Lokal (Mac Mini — nur Dev/Tests): @@ -105,11 +105,11 @@ docker compose -f breakpilot-compliance/docker-compose.yml up -d ```bash # Zwei Remotes - IMMER zu beiden pushen: -git push origin main && git push gitea main +git push origin main # Remotes: # origin: http://macmini:3003/pilotadmin/breakpilot-compliance.git -# gitea: git@gitea.meghsakha.com:Benjamin_Boenisch/breakpilot-compliance.git + ``` --- diff --git a/scripts/apply_consent_history_migration.sh b/scripts/apply_consent_history_migration.sh index b1d557a..97e04ae 100644 --- a/scripts/apply_consent_history_migration.sh +++ b/scripts/apply_consent_history_migration.sh @@ -9,7 +9,7 @@ BACKEND_CONTAINER="bp-compliance-backend" PROJECT_DIR="/Users/benjaminadmin/Projekte/breakpilot-compliance" echo "==> Pushing code to Mac Mini..." -git push origin main && git push gitea main +git push origin main echo "==> Pulling code on Mac Mini..." ssh macmini "git -C ${PROJECT_DIR} pull --no-rebase origin main" diff --git a/scripts/apply_einwilligungen_migration.sh b/scripts/apply_einwilligungen_migration.sh index ca281ca..82bd34e 100755 --- a/scripts/apply_einwilligungen_migration.sh +++ b/scripts/apply_einwilligungen_migration.sh @@ -9,7 +9,7 @@ BACKEND_CONTAINER="bp-compliance-backend" PROJECT_DIR="/Users/benjaminadmin/Projekte/breakpilot-compliance" echo "==> Pushing code to Mac Mini..." -git push origin main && git push gitea main +git push origin main echo "==> Pulling code on Mac Mini..." ssh macmini "cd ${PROJECT_DIR} && git pull --no-rebase origin main" diff --git a/scripts/apply_legal_docs_migration.sh b/scripts/apply_legal_docs_migration.sh index 297a6fc..86a9771 100755 --- a/scripts/apply_legal_docs_migration.sh +++ b/scripts/apply_legal_docs_migration.sh @@ -9,7 +9,7 @@ BACKEND_CONTAINER="bp-compliance-backend" PROJECT_DIR="/Users/benjaminadmin/Projekte/breakpilot-compliance" echo "==> Pushing code to Mac Mini..." -git push origin main && git push gitea main +git push origin main echo "==> Pulling code on Mac Mini..." ssh macmini "cd ${PROJECT_DIR} && git pull --no-rebase origin main" diff --git a/scripts/apply_vvt_migration.sh b/scripts/apply_vvt_migration.sh index 0a58b59..ea43aee 100644 --- a/scripts/apply_vvt_migration.sh +++ b/scripts/apply_vvt_migration.sh @@ -9,7 +9,7 @@ BACKEND_CONTAINER="bp-compliance-backend" PROJECT_DIR="/Users/benjaminadmin/Projekte/breakpilot-compliance" echo "==> Pushing code to Mac Mini..." -git push origin main && git push gitea main +git push origin main echo "==> Pulling code on Mac Mini..." ssh macmini "cd ${PROJECT_DIR} && git pull --no-rebase origin main" diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 88f8128..2649428 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -49,15 +49,11 @@ ok() { printf "\033[1;32m[OK]\033[0m %s\n" "$*"; } warn() { printf "\033[1;33m[WARN]\033[0m %s\n" "$*"; } fail() { printf "\033[1;31m[FAIL]\033[0m %s\n" "$*"; } -# --- Step 1: Push to both remotes --- -info "Pushing to origin (local Gitea)..." +# --- Step 1: Push to origin --- +info "Pushing to origin..." git push origin main ok "Pushed to origin." -info "Pushing to gitea (external)..." -git push gitea main -ok "Pushed to gitea." - # --- Step 2: Detect changed services --- info "Detecting changed services since last deploy..." @@ -92,7 +88,7 @@ CHANGED_SERVICES=$(echo "${CHANGED_SERVICES}" | tr ' ' '\n' | sort -u | tr '\n' if [ -z "${CHANGED_SERVICES}" ]; then warn "No service directories changed. Nothing to rebuild on Mac Mini." - info "Coolify will still deploy from the gitea push." + info "Orca will still deploy from the origin push." else info "Changed services: ${CHANGED_SERVICES}"