fix: health check uses node fetch instead of wget

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
denshooter
2026-02-18 13:18:46 +01:00
parent 034ba854b5
commit b1d52633a6
+1 -1
View File
@@ -43,7 +43,7 @@ jobs:
run: |
echo "Waiting for container to start..."
for i in $(seq 1 15); do
if docker exec oma-memorial wget -q --spider http://localhost:3000 2>/dev/null; then
if docker exec oma-memorial node -e "fetch('http://localhost:3000/api/candles').then(r=>{process.exit(r.ok?0:1)}).catch(()=>process.exit(1))" 2>/dev/null; then
echo "Container is healthy!"
exit 0
fi