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:
9
public_html/deploy_dev.php
Normal file
9
public_html/deploy_dev.php
Normal 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');
|
||||
Reference in New Issue
Block a user