diff --git a/HANDOFF-LIVE-BACKEND.md b/HANDOFF-LIVE-BACKEND.md index 06e98e5..3ddc062 100644 --- a/HANDOFF-LIVE-BACKEND.md +++ b/HANDOFF-LIVE-BACKEND.md @@ -95,6 +95,26 @@ Côté natif c'est déjà prouvé (plugin `CoachLiveBridge` logue `liveSample reçu de la Watch hr=…`). Si `/live` ne bouge pas alors que ce log apparaît, c'est le JS/registerPlugin du template à corriger. +## État du fix + déploiement (VPS) + +**Fix point 1 déjà écrit** : branche **`feat/live-nav-tab`** sur `coach_sportif` +(ajout d'un onglet nav « Live workout » → `/live` dans `NAV_ITEMS`, car la route +existait mais n'était liée nulle part → page inatteignable → « token invalide » +sur redirect /login). Commit `ecf334a`. **PAS mergé sur main** (pas de deploy prod +à l'aveugle). + +Infra (depuis `Makefile` / `deploy.sh`) : +- VPS : `ubuntu@83.228.246.229` +- Prod : `/home/ubuntu/coach_sportif`, service systemd `coach-web` +- Staging : `/home/ubuntu/coach_sportif_staging`, service `coach-web-staging` +- Auto-deploy : webhook Gitea sur push `main` → `deploy.sh` + (`git reset --hard origin/main` + `pip install -r requirements.txt` + restart `coach-web` + healthcheck) +- Targets : `make test`, `make deploy-staging` (sans risque), `make deploy` (prod) + +**Pour finir** : sur l'env Linux/VPS (Python ≥ 3.11, le venv ne se monte pas sur +le Mac : `anyio==4.13.0`), lancer `make test`, valider via `make deploy-staging`, +puis merger `feat/live-nav-tab` → `main` (auto-deploy prod). + ## Hors scope de ce handoff - Vraie FC sur la Watch physique de Sylvain (bug système Santé de SA montre — NanoSettings crashe, à régler par désappairage/réappairage).