From bfbb920f88ef6d58c81eca2f0a56d808d3aa7508 Mon Sep 17 00:00:00 2001 From: Tatiana Date: Thu, 22 Jan 2026 21:37:17 +0100 Subject: [PATCH 1/7] Add GitHub Actions workflow for VPS deployment --- deploy.ylm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 deploy.ylm diff --git a/deploy.ylm b/deploy.ylm new file mode 100644 index 0000000..c6ea83f --- /dev/null +++ b/deploy.ylm @@ -0,0 +1,23 @@ +name: Deploy to VPS + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Copy files to VPS + uses: appleboy/ssh-action@v1.0.0 + with: + host: ${{ secrets.VPS_HOST }} + username: deploy + key: ${{ secrets.SSH_PRIVATE_KEY }} + script: | + /home/deploy/deploy.sh From 3d1a07d733ce517d81d21853569dac2862dd85a8 Mon Sep 17 00:00:00 2001 From: Tatiana Villa Ema Date: Thu, 22 Jan 2026 21:40:27 +0100 Subject: [PATCH 2/7] configuracion plara deploy en VPS --- deploy.ylm => .github/workflows/deploy.ylm | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename deploy.ylm => .github/workflows/deploy.ylm (100%) diff --git a/deploy.ylm b/.github/workflows/deploy.ylm similarity index 100% rename from deploy.ylm rename to .github/workflows/deploy.ylm From 514faa750e5eb444c873a9ebdfe85d90edd1001d Mon Sep 17 00:00:00 2001 From: Tatiana Villa Ema Date: Thu, 22 Jan 2026 21:53:03 +0100 Subject: [PATCH 3/7] probando deply en vps --- prueba.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 prueba.html diff --git a/prueba.html b/prueba.html new file mode 100644 index 0000000..02bed16 --- /dev/null +++ b/prueba.html @@ -0,0 +1,12 @@ + + + + + + Document + + +

Hola Mundo

+

Esta es una página de prueba.

+ + \ No newline at end of file From 35a4e18e03ee2ab06421abcc397233a443f0f21e Mon Sep 17 00:00:00 2001 From: Tatiana Villa Ema Date: Thu, 22 Jan 2026 21:55:11 +0100 Subject: [PATCH 4/7] probando deply en vps --- prueba.html | 1 + 1 file changed, 1 insertion(+) diff --git a/prueba.html b/prueba.html index 02bed16..93d6af1 100644 --- a/prueba.html +++ b/prueba.html @@ -8,5 +8,6 @@

Hola Mundo

Esta es una página de prueba.

+

¡Bienvenido a la programación web!

\ No newline at end of file From bda91ab18823a2c84fb2936b8d3589e0200d54cb Mon Sep 17 00:00:00 2001 From: Tatiana Villa Ema Date: Thu, 22 Jan 2026 22:04:03 +0100 Subject: [PATCH 5/7] configuracion plara deploy en VPS --- prueba.html | 1 + 1 file changed, 1 insertion(+) diff --git a/prueba.html b/prueba.html index 93d6af1..293e80d 100644 --- a/prueba.html +++ b/prueba.html @@ -9,5 +9,6 @@

Hola Mundo

Esta es una página de prueba.

¡Bienvenido a la programación web!

+

Espero que disfrutes aprendiendo HTML.

\ No newline at end of file From 9dcc8324a8594262b9d161f6c89710a4ce9e4516 Mon Sep 17 00:00:00 2001 From: Tatiana Villa Ema Date: Thu, 22 Jan 2026 22:17:35 +0100 Subject: [PATCH 6/7] Apuntando registro y login a localhost --- js/login.js | 2 +- js/register.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/login.js b/js/login.js index ab684c8..abb4330 100644 --- a/js/login.js +++ b/js/login.js @@ -13,7 +13,7 @@ async function login() { } try { - const response = await fetch("http://aplicacionesdevanguardia.es:8080/auth/login", { + const response = await fetch("http://localhost:8080/auth/login", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email, password }) diff --git a/js/register.js b/js/register.js index 1263e86..36547c6 100644 --- a/js/register.js +++ b/js/register.js @@ -14,7 +14,7 @@ } try { - const response = await fetch("http://aplicacionesdevanguardia.es:8080/auth/register", { + const response = await fetch("http://localhost:8080/auth/register", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ nombre, email, password }) From 108aecf10caad61c2241de62c43ec5d38a1eac8c Mon Sep 17 00:00:00 2001 From: Tatiana Villa Date: Sat, 24 Jan 2026 13:00:47 +0100 Subject: [PATCH 7/7] Comunicacion con backend --- js/login.js | 2 +- js/register.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/login.js b/js/login.js index abb4330..c95bd6e 100644 --- a/js/login.js +++ b/js/login.js @@ -13,7 +13,7 @@ async function login() { } try { - const response = await fetch("http://localhost:8080/auth/login", { + const response = await fetch("http://recursos-catolicos.es:8080/auth/login", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email, password }) diff --git a/js/register.js b/js/register.js index 36547c6..d42f183 100644 --- a/js/register.js +++ b/js/register.js @@ -30,7 +30,7 @@ } } catch (e) { - msg.textContent = "No se pudo conectar con el servidor."; + msg.textContent = "No se pudo conectar con el servidor." + e; msg.classList.add("error"); } } \ No newline at end of file