From 065fed8d988056425f06789bbec6ce88bb7b29d9 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sat, 20 Dec 2025 12:06:44 -0600 Subject: [PATCH] Fix GitLab CI backend health check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use docker exec curl instead of node http.get from host. Port 3001 is not exposed to host, so health checks must run inside the container. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 187b1e8..2065315 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -135,7 +135,7 @@ verify: - | HEALTH_OK=0 for i in 1 2 3 4 5 6; do - if node -e "require('http').get('http://localhost:3001/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) }).on('error', () => process.exit(1))" > /dev/null 2>&1; then + if docker exec mvp-backend curl -sf http://localhost:3001/health > /dev/null 2>&1; then echo "OK: Backend health check passed" HEALTH_OK=1 break