From c40f310fba288ce84910ed095582192db0fd1467 Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Fri, 30 Jan 2026 05:00:30 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Add=20backend=20health?= =?UTF-8?q?=20check=20endpoint=20to=20deployment=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/utils/deploy-pokedex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/utils/deploy-pokedex.js b/code/utils/deploy-pokedex.js index 3202c13..c945d83 100644 --- a/code/utils/deploy-pokedex.js +++ b/code/utils/deploy-pokedex.js @@ -251,12 +251,12 @@ async function deployLocal(config) { if (!frontendHealthy) throw new Error('Frontend health check failed'); console.log(' ✅ Frontend healthy'); + console.log(' Checking backend...'); const backendHealthy = await healthCheck( 'localhost', config.backendPort, '/health' ); - const backendHealthy = await healthCheck('localhost', config.backendPort); // Backend might need more time if (!backendHealthy) throw new Error('Backend health check failed'); console.log(' ✅ Backend healthy');