docs(ops): add reference + env config + git workflow

This commit is contained in:
2026-02-01 13:31:43 +01:00
parent 770dad30fb
commit ccaa8029fb
3 changed files with 169 additions and 0 deletions

30
docs/OPS-REFERENCE.md Normal file
View File

@@ -0,0 +1,30 @@
# OPS-REFERENCE — Archicratie Édition
Document “pivot” : liens, invariants, conventions, commandes réflexes.
## 0) Invariants (à ne pas casser)
- **Source de vérité Git** : `origin/main` sur :contentReference[oaicite:0]{index=0}.
- **Prod** : conteneur `archicratie-web-*` (nginx) derrière reverse proxy DSM.
- **Config “Proposer”** : dépend de `PUBLIC_GITEA_BASE`, `PUBLIC_GITEA_OWNER`, `PUBLIC_GITEA_REPO` injectés au build.
- **Branches** : `main` = travail ; `master` = legacy/compat (alignée mais protégée).
- **NAS** : shell sans `git` → usage standard : `alpine/git` en conteneur.
## 1) Repères (chemins & objets)
### NAS (DS220+)
- Checkout/release courant : `/volume2/docker/archicratie-web/current` (symlink vers releases/*/app)
- Releases : `/volume2/docker/archicratie-web/releases/<timestamp>/app`
- Conteneur green (exemple) : `archicratie-web-green``127.0.0.1:8082->80`
- Conteneur blue (exemple) : `archicratie-web-blue``127.0.0.1:8081->80`
- Smoke : `/volume2/docker/archicratie-web/ops/smoke.sh <port>`
### Mac Studio
- Repo de travail : `site/` (ou équivalent)
- Git natif : OK (branches, PR, tags, etc.)
## 2) Commandes réflexes (diagnostic)
### “Quelle version sert le domaine public ?”
```sh
curl -kI https://archicratie.trans-hands.synology.me/ | egrep -i 'etag:|last-modified:|server:'