diff --git a/.github/workflows/deploy.ylm b/.github/workflows/deploy.ylm new file mode 100644 index 0000000..c6ea83f --- /dev/null +++ b/.github/workflows/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 diff --git a/js/login.js b/js/login.js index ab684c8..c95bd6e 100755 --- 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://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 1263e86..d42f183 100755 --- 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 }) @@ -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 diff --git a/prueba.html b/prueba.html new file mode 100644 index 0000000..293e80d --- /dev/null +++ b/prueba.html @@ -0,0 +1,14 @@ + + + + + + Document + + +

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