Adapter le dépôt au layout serveur (git root = home, pas public_html).

Déplace deploy_dev.php dans public_html, retire www/home du tracking, et limite git clean aux chemins applicatifs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-19 10:29:36 -04:00
parent ea49f2c94f
commit def14692ee
303 changed files with 50 additions and 130830 deletions

View File

@ -0,0 +1,9 @@
<?php
/**
* Webhook Gitea → déploiement branche dev.
* Appelé par le webhook ; exécute le script shell hors webroot.
*
* Emplacement : public_html/ (docroot) pour le webhook.
* IMPORTANT : versionné — sinon un clean le supprimerait.
*/
echo shell_exec('/home/ms1reader/deploy/deploy_dev.sh 2>&1');