diff --git a/deploy.php b/deploy.php new file mode 100644 index 0000000..5c6e6cc --- /dev/null +++ b/deploy.php @@ -0,0 +1,49 @@ +&1", $output, $returnCode); + +// Respuesta +header('Content-Type: application/json'); +echo json_encode([ + 'ok' => $returnCode === 0, + 'output' => implode("\n", $output), + 'time' => date('Y-m-d H:i:s') +]); diff --git a/deploy_ksaldis.sh b/deploy_ksaldis.sh new file mode 100644 index 0000000..a349f76 --- /dev/null +++ b/deploy_ksaldis.sh @@ -0,0 +1,41 @@ +#!/bin/bash +# deploy_ksaldis.sh — Script de deploy automático +# Llamado por el webhook de Gitea al hacer push +# +# Clona/actualiza el repo y copia LIBRO_DE_ESTUDIO.html como index.html + +set -e + +REPO_DIR="/var/www/ksaldis-dt/.repo" +WEB_DIR="/var/www/ksaldis-dt" +REPO_URL="http://10.0.10.205:3000/rmonla/rm-KSALDIS-DT.git" +LOG="$WEB_DIR/deploy.log" + +log() { + echo "$(date '+%Y-%m-%d %H:%M:%S') | $1" >> "$LOG" +} + +log "Deploy iniciado" + +# Clonar o actualizar repo +if [ -d "$REPO_DIR/.git" ]; then + cd "$REPO_DIR" + git fetch origin 2>&1 + git reset --hard origin/main 2>&1 + log "git pull OK" +else + git clone "$REPO_URL" "$REPO_DIR" 2>&1 + log "git clone OK" +fi + +# Copiar el libro como index.html +SRC="$REPO_DIR/descargar-curso/descargas/LIBRO_DE_ESTUDIO.html" +if [ -f "$SRC" ]; then + cp "$SRC" "$WEB_DIR/index.html" + log "index.html actualizado ($(wc -c < "$WEB_DIR/index.html") bytes)" +else + log "ERROR: LIBRO_DE_ESTUDIO.html no encontrado en el repo" + exit 1 +fi + +log "Deploy completado" diff --git a/descargar-curso/descargas/index.html b/descargar-curso/descargas/index.html index 900a347..560c1e6 100644 --- a/descargar-curso/descargas/index.html +++ b/descargar-curso/descargas/index.html @@ -1,789 +1,305 @@ - +
- - -Contenido descargado — Navegación offline
-Material de Estudio — Versión Offline
+ +Extraído el 2026-05-02-
PLANIFICACION
-PREPARACION ATLETICA
-EXPLICACION DEL TRABAJO PRACTICO A PRESENTAR
-SEGUIMIENTOS DE EQUIPOS
-ANALISIS DE EQUIPOS DE VOLEIBOL
-ANALISIS DE EQUIPOS DE VOLEIBOL 2
-TRABAJO PRACTICO FINAL DE LA UNIDAD
-https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34868/study-resources/50320/show?me=140219https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34868/study-resources/52903/show?me=142139https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34868/study-resources/46541/show?me=140221https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34868/study-resources/46723/show?me=140222https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34868/study-resources/46724/show?me=140223https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34868/study-resources/50142/show?me=140224https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34868/study-resources/50145/show?me=140225https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34868/study-resources/50144/show?me=140226Extraído el 2026-05-02-
PLANIFICACION
-PREPARACION ATLETICA
-EXPLICACION DEL TRABAJO PRACTICO A PRESENTAR
-SEGUIMIENTOS DE EQUIPOS
-ANALISIS DE EQUIPOS DE VOLEIBOL
-ANALISIS DE EQUIPOS DE VOLEIBOL 2
-TRABAJO PRACTICO FINAL DE LA UNIDAD
-https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34869/study-resources/53012/show?me=142522https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34869/study-resources/53137/show?me=142648https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34869/study-resources/53138/show?me=142649https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34869/study-resources/53139/show?me=142650https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34869/study-resources/46719/show?me=140229https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34869/study-resources/50329/show?me=140232https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34869/study-resources/46726/show?me=140233https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34869/study-resources/50139/show?me=140234https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34869/study-resources/46725/show?me=140235https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34869/study-resources/50140/show?me=140236https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34869/study-resources/50143/show?me=140237https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34869/study-resources/50141/show?me=140238Extraído el 2026-05-02-
PLANIFICACION
-PREPARACION ATLETICA
-EXPLICACION DEL TRABAJO PRACTICO A PRESENTAR
-SEGUIMIENTOS DE EQUIPOS
-ANALISIS DE EQUIPOS DE VOLEIBOL
-ANALISIS DE EQUIPOS DE VOLEIBOL 2
-TRABAJO PRACTICO FINAL DE LA UNIDAD
-https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19096/s/34870/study-resources/53173/show?me=142686Oops! An Error Occurred
-The server returned a "500 Internal Server Error".
-Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
-Oops! An Error Occurred
-The server returned a "500 Internal Server Error".
-Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
-Oops! An Error Occurred
-The server returned a "500 Internal Server Error".
-Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
-Oops! An Error Occurred
-The server returned a "500 Internal Server Error".
-Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
-Extraído el 2026-05-02-
PLANIFICACION
-PREPARACION ATLETICA
-EXPLICACION DEL TRABAJO PRACTICO A PRESENTAR
-SEGUIMIENTOS DE EQUIPOS
-ANALISIS DE EQUIPOS DE VOLEIBOL
-ANALISIS DE EQUIPOS DE VOLEIBOL 2
-TRABAJO PRACTICO FINAL DE LA UNIDAD
-https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19097/s/35519/study-resources/46874/show?me=142960https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19097/s/35519/study-resources/46805/show?me=142961Extraído el 2026-05-02-
PLANIFICACION
-PREPARACION ATLETICA
-EXPLICACION DEL TRABAJO PRACTICO A PRESENTAR
-SEGUIMIENTOS DE EQUIPOS
-ANALISIS DE EQUIPOS DE VOLEIBOL
-ANALISIS DE EQUIPOS DE VOLEIBOL 2
-TRABAJO PRACTICO FINAL DE LA UNIDAD
-https://voley.onlineeducation.center/es/campus/student/training/e/14197/m/19097/s/35520/study-resources/46926/show?me=143177Extraído el 2026-05-02-
PLANIFICACION
-PREPARACION ATLETICA
-EXPLICACION DEL TRABAJO PRACTICO A PRESENTAR
-SEGUIMIENTOS DE EQUIPOS
-ANALISIS DE EQUIPOS DE VOLEIBOL
-ANALISIS DE EQUIPOS DE VOLEIBOL 2
-TRABAJO PRACTICO FINAL DE LA UNIDAD
-Extraído el 2026-05-02-
PLANIFICACION
-PREPARACION ATLETICA
-EXPLICACION DEL TRABAJO PRACTICO A PRESENTAR
-SEGUIMIENTOS DE EQUIPOS
-ANALISIS DE EQUIPOS DE VOLEIBOL
-ANALISIS DE EQUIPOS DE VOLEIBOL 2
-TRABAJO PRACTICO FINAL DE LA UNIDAD
-