From e04be61952096a5e727ddeee70480d4bad550e6c Mon Sep 17 00:00:00 2001 From: msaldain Date: Mon, 18 Aug 2025 19:32:32 +0000 Subject: [PATCH] Modificado el docker-compose L67. Servicio auth. Estaba importandoce las dependencias de app no de auth... --- docker-compose.override.yml | 2 +- services/app/src/index.js | 2 ++ services/{auth => app}/src/pages/index.html | 0 services/auth/src/index.js | 1 - 4 files changed, 3 insertions(+), 2 deletions(-) rename services/{auth => app}/src/pages/index.html (100%) diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 2d07244..f8fbab4 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -64,7 +64,7 @@ services: working_dir: /app user: "${UID:-1000}:${GID:-1000}" volumes: - - ./services/app:/app:rw + - ./services/auth:/app:rw - ./node_modules:/app/node_modules env_file: - ./services/auth/.env.development diff --git a/services/app/src/index.js b/services/app/src/index.js index 35e0db6..bb6489f 100644 --- a/services/app/src/index.js +++ b/services/app/src/index.js @@ -66,6 +66,8 @@ async function verificarConexion() { // === Servir páginas estáticas === app.use(express.static(path.join(__dirname, 'pages'))); +app.get('/',(req, res) => res.sendFile(path.join(__dirname, 'pages', 'index.html'))); + app.get('/roles', (req, res) => res.sendFile(path.join(__dirname, 'pages', 'roles.html'))); app.get('/usuarios', (req, res) => res.sendFile(path.join(__dirname, 'pages', 'usuarios.html'))); app.get('/categorias',(req, res) => res.sendFile(path.join(__dirname, 'pages', 'categorias.html'))); diff --git a/services/auth/src/pages/index.html b/services/app/src/pages/index.html similarity index 100% rename from services/auth/src/pages/index.html rename to services/app/src/pages/index.html diff --git a/services/auth/src/index.js b/services/auth/src/index.js index f9e4b9b..b4f1759 100644 --- a/services/auth/src/index.js +++ b/services/auth/src/index.js @@ -70,7 +70,6 @@ app.set('trust proxy', true); app.use(express.static(path.join(__dirname, 'pages'))); -app.get('/',(req, res) => res.sendFile(path.join(__dirname, 'pages', 'index.html'))); app.get('/planes', async (req, res) => {