🔧 Fix backend health check by correcting duplicate function call and improving readability
This commit is contained in:
@@ -251,7 +251,11 @@ async function deployLocal(config) {
|
|||||||
if (!frontendHealthy) throw new Error('Frontend health check failed');
|
if (!frontendHealthy) throw new Error('Frontend health check failed');
|
||||||
console.log(' ✅ Frontend healthy');
|
console.log(' ✅ Frontend healthy');
|
||||||
|
|
||||||
const backendHealthy = await healthCheck('localhost', config.backendPort, '/health');
|
const backendHealthy = await healthCheck(
|
||||||
|
'localhost',
|
||||||
|
config.backendPort,
|
||||||
|
'/health'
|
||||||
|
);
|
||||||
const backendHealthy = await healthCheck('localhost', config.backendPort);
|
const backendHealthy = await healthCheck('localhost', config.backendPort);
|
||||||
// Backend might need more time
|
// Backend might need more time
|
||||||
if (!backendHealthy) throw new Error('Backend health check failed');
|
if (!backendHealthy) throw new Error('Backend health check failed');
|
||||||
|
|||||||
Reference in New Issue
Block a user