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>
10 lines
312 B
PHP
10 lines
312 B
PHP
<?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');
|