CLAUDE.md: Auto-Deploy + Promote-UI dokumentiert (TODO -> abgeschlossen)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Dieser Commit ist enthalten in:
49
CLAUDE.md
49
CLAUDE.md
@@ -191,6 +191,49 @@ WORKFLOW_STAGING_TO_LIVE:
|
|||||||
# Danach auf Live-Server pullen:
|
# Danach auf Live-Server pullen:
|
||||||
ssh claude-dev@46.225.225.49 'cd /opt/v2-Docker/aegis-website/html && git pull'
|
ssh claude-dev@46.225.225.49 'cd /opt/v2-Docker/aegis-website/html && git pull'
|
||||||
|
|
||||||
STAGING_OFFEN_TODO:
|
# ───────────────────────────────────────────────────────────────────
|
||||||
- Auto-Deploy: Webhook-Listener bei Push auf develop
|
# AUTO-DEPLOY + PROMOTE-UI
|
||||||
- Promote-UI: Ein-Klick-Button statt manuellem PR + Pull
|
# ───────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
AUTO_DEPLOY:
|
||||||
|
prinzip: |
|
||||||
|
Gitea-Webhook bei Push auf develop -> Listener-Service auf dem Server pullt
|
||||||
|
automatisch + restartet ggf. den Service. Kein manueller git pull mehr noetig.
|
||||||
|
|
||||||
|
listener_service:
|
||||||
|
pfad: /opt/v2-Docker/aegis-staging-deploy
|
||||||
|
service: aegis-staging-deploy.service
|
||||||
|
port: 127.0.0.1:8096
|
||||||
|
deployments:
|
||||||
|
staging: "develop -> /opt/v2-Docker/aegis-website-staging/html"
|
||||||
|
live: "main -> /opt/v2-Docker/aegis-website/html"
|
||||||
|
endpoints:
|
||||||
|
"POST /__deploy": "staging (HMAC ueber Gitea-Webhook)"
|
||||||
|
"POST /__deploy/live": "live (HMAC ueber Promote-UI)"
|
||||||
|
secrets: in /opt/v2-Docker/aegis-staging-deploy/.env (nicht im Repo)
|
||||||
|
|
||||||
|
gitea_webhook:
|
||||||
|
repo: AegisSight/Website
|
||||||
|
url: https://staging.aegis-sight.de/__deploy
|
||||||
|
branch_filter: develop
|
||||||
|
|
||||||
|
PROMOTE_UI:
|
||||||
|
url: https://deploy.aegis-sight.de
|
||||||
|
pfad: /opt/v2-Docker/aegis-promote
|
||||||
|
service: aegis-promote.service
|
||||||
|
port: 127.0.0.1:8097
|
||||||
|
zugriff: Magic-Link-Login an info@aegis-sight.de (eigener Cookie deploy.aegis-sight.de)
|
||||||
|
funktion: |
|
||||||
|
Zeigt pro Service (Webseite + Monitor) Live-Stand vs. Staging-Stand.
|
||||||
|
Promote-Button erstellt Gitea-PR develop->main, mergt ihn auto, und triggert
|
||||||
|
den Live-Deploy via HMAC-signed Webhook am Listener-Service.
|
||||||
|
|
||||||
|
WORKFLOW_KOMPLETT:
|
||||||
|
1_entwickeln: |
|
||||||
|
git checkout develop
|
||||||
|
# Aenderung
|
||||||
|
git add . && git commit && git push origin develop
|
||||||
|
# -> Auto-Deploy pullt in /opt/v2-Docker/aegis-website-staging/html
|
||||||
|
2_pruefen_staging: https://staging.aegis-sight.de/
|
||||||
|
3_promoten: https://deploy.aegis-sight.de/ (Promote-Knopf)
|
||||||
|
4_pruefen_live: https://aegis-sight.de/
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren