From 178d339c779b3d8a751e68f01bbbf11bf3b00f4f Mon Sep 17 00:00:00 2001 From: Santiago21112001 Date: Mon, 11 Mar 2024 11:14:47 +0100 Subject: [PATCH] log api_uri y puesto en docker-compose --- .env | 1 + docker-compose.yml | 4 +++- webapp/src/components/login/Login.js | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 4cc1526..c7ff3bf 100644 --- a/.env +++ b/.env @@ -1 +1,2 @@ teamname="wiq_es04c" +API_URI="172.167.244.198" \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 8d7347f..fc551a0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -103,7 +103,9 @@ services: depends_on: - gatewayservice ports: - - "3000:3000" + - "3000:3000" + environment: + - API_URI=${API_URI} prometheus: image: prom/prometheus diff --git a/webapp/src/components/login/Login.js b/webapp/src/components/login/Login.js index 3c1a854..8fbf8c0 100644 --- a/webapp/src/components/login/Login.js +++ b/webapp/src/components/login/Login.js @@ -32,6 +32,7 @@ const Login = () => { const loginUser = async () => { try { + console.log("ApiEndpoint al hacer login es: "+apiEndpoint) const response = await axios.post(`${apiEndpoint}/login`, { username, password }); // Extract data from the response