fix: Health check now fails script on server startup failure

Changed from warning-only to proper error handling:
- if server doesn't respond after restart, exit with error
- prevents false negatives when server fails to start

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
cabana8471
2026-01-25 20:11:06 +01:00
parent e756486515
commit 95b0dfac83

View File

@@ -234,7 +234,10 @@ grep -r "new Map\(\)\|new Set\(\)" --include="*.ts" --include="*.tsx" --include=
./init.sh &
sleep 15 # Allow server to fully start
# Verify server is responding
curl -f http://localhost:3000/api/health || curl -f http://localhost:3000 || echo "WARNING: Health check failed"
if ! curl -f http://localhost:3000/api/health && ! curl -f http://localhost:3000; then
echo "ERROR: Server failed to start after restart"
exit 1
fi
```
5. **Query for test data - it MUST still exist**