docs: webhook deploy automático en HOSTING.md

This commit is contained in:
Ricardo Monla
2026-05-03 02:02:58 -03:00
parent 75c9a11f9b
commit 83aef9bdab
+17 -2
View File
@@ -43,9 +43,24 @@ location /ksaldis-dt {
} }
``` ```
## Deploy / Actualización ## Deploy Automático (Webhook)
Cuando se regenera el libro con `node generar_dashboard.mjs`, subir la nueva versión: Al hacer `git push` a Gitea, el sitio se actualiza solo:
```
git push → Gitea webhook → deploy.php → deploy_ksaldis.sh → sitio actualizado
```
| Componente | Detalle |
|---|---|
| **Webhook URL** | `https://rmonla.duckdns.org/ksaldis-dt/deploy.php` |
| **Secret** | `ksaldis2026deploy` |
| **Evento** | Push |
| **Script** | `/var/www/ksaldis-dt/deploy_ksaldis.sh` |
| **Repo clonado** | `/var/www/ksaldis-dt/.repo` |
| **Log** | `/var/www/ksaldis-dt/deploy.log` |
### Deploy manual (si fuera necesario)
```bash ```bash
scp descargar-curso/descargas/LIBRO_DE_ESTUDIO.html rmonla@10.0.10.117:/var/www/ksaldis-dt/index.html scp descargar-curso/descargas/LIBRO_DE_ESTUDIO.html rmonla@10.0.10.117:/var/www/ksaldis-dt/index.html