Merge branch 'main' of github.com:tatvil/RecursosCatolicosWEB

This commit is contained in:
Tatiana Villa 2026-01-24 12:06:48 +00:00
commit 6349566530
4 changed files with 40 additions and 3 deletions

23
.github/workflows/deploy.ylm vendored Normal file
View File

@ -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

View File

@ -13,7 +13,7 @@ async function login() {
} }
try { try {
const response = await fetch("http://aplicacionesdevanguardia.es:8080/auth/login", { const response = await fetch("http://recursos-catolicos.es:8080/auth/login", {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
body: JSON.stringify({ email, password }) body: JSON.stringify({ email, password })

View File

@ -14,7 +14,7 @@
} }
try { try {
const response = await fetch("http://aplicacionesdevanguardia.es:8080/auth/register", { const response = await fetch("http://localhost:8080/auth/register", {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
body: JSON.stringify({ nombre, email, password }) body: JSON.stringify({ nombre, email, password })
@ -30,7 +30,7 @@
} }
} catch (e) { } 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"); msg.classList.add("error");
} }
} }

14
prueba.html Normal file
View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Hola Mundo</h1>
<p>Esta es una página de prueba.</p>
<p>¡Bienvenido a la programación web!</p>
<p>Espero que disfrutes aprendiendo HTML.</p>
</body>
</html>