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