28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
---
|
|
description: MS1 Inscription — playbook Git/deploy (ops)
|
|
alwaysApply: true
|
|
---
|
|
|
|
# Playbook Git / deploy — MS1 Inscription
|
|
|
|
## Layout
|
|
|
|
- Le dépôt Git **est** le site (racine web = racine git), modèle historique MS1.
|
|
- Différent de Reader (git root = `$HOME` avec `ci4app` + `public_html` frères).
|
|
|
|
## Deploy
|
|
|
|
1. `~/deploy/deploy_dev.sh` : fetch `dev` → reset --hard → clean (adapter les chemins au docroot Inscription).
|
|
2. `deploy_dev.php` versionné à la racine — obligatoire avant webhook (sinon `git clean` l'efface).
|
|
3. Chemins absolus dans le `.sh` (PHP sans `HOME`).
|
|
|
|
## À vérifier / aligner si besoin
|
|
|
|
- Miroir Bitbucket : case « Synchroniser quand les révisions sont soumis » + intervalle `1h`.
|
|
- Webhook Gitea → URL HTTPS du `deploy_dev.php` d'environnement dev.
|
|
- Même philosophie entreprise que Reader (voir `entreprise/00-git-modele.mdc`).
|
|
|
|
## Après push (agent)
|
|
|
|
- Obligatoire : commentaire JIRA version + date/heure — voir `projet/10-workflow.mdc` § « Commentaire JIRA après push ».
|