From 30ce41f6e682ef6bbb3682e2ab6942e2d10ab760 Mon Sep 17 00:00:00 2001 From: Ruben Date: Sat, 6 Apr 2024 01:23:21 +0200 Subject: [PATCH] Cambios menores para el despliegue --- .github/workflows/release.yml | 2 +- webapp/src/components/Game.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1d01c85..183b122a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -151,4 +151,4 @@ jobs: wget https://raw.githubusercontent.com/arquisoft/wiq_es2c/master/docker-compose.yml -O docker-compose.yml wget https://raw.githubusercontent.com/arquisoft/wiq_es2c/master/.env -O .env docker compose --profile prod down - docker compose --profile prod up -d + docker compose --profile prod up -d --pull always diff --git a/webapp/src/components/Game.js b/webapp/src/components/Game.js index a9d4b8c0..6e4210f3 100644 --- a/webapp/src/components/Game.js +++ b/webapp/src/components/Game.js @@ -22,6 +22,7 @@ const Game = () => { const [answeredQuestions,setAnsweredQuestions] = useState(1); const [isTimeRunning, setIsTimeRunning] = useState(true); + // Comentario de prueba para el despliegue const MAX_TIME = 30; const MAX_PREGUNTAS = 5; @@ -29,11 +30,11 @@ const Game = () => { const getQuestion = useCallback(async (answeredQuestionsValue) => { try { - //console.log(" NUMERO DE PREGUNTA " + answeredQuestionsValue); + console.log(" NUMERO DE PREGUNTA " + answeredQuestionsValue); const createNewGame = answeredQuestionsValue > 0 ? false : true; - //console.log(" HAY QUE CREAR UN NUEVO JUEGO? " + createNewGame); + console.log(" HAY QUE CREAR UN NUEVO JUEGO? " + createNewGame); const response = await axios.get(`${apiEndpoint}/generateQuestion`, { params: {