🛠️ Add backend health check endpoint to deployment script

This commit is contained in:
2026-01-30 05:00:30 +00:00
parent 8eb037474c
commit c40f310fba

View File

@@ -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');