docs: webhook deploy automático en HOSTING.md
This commit is contained in:
+17
-2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user