Merge branch 'main' of github.com:tatvil/RecursosCatolicosWEB
This commit is contained in:
commit
6349566530
|
|
@ -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
|
||||
|
|
@ -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 })
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
@ -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>
|
||||
Loading…
Reference in New Issue