fix: use correct Host header in deploy health check
ALLOWED_HOSTS doesn't include localhost, so curl with default Host header always gets a 400 and the health check fails. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -23,7 +23,7 @@ sudo systemctl restart sum-nohype
|
|||||||
|
|
||||||
echo "==> Waiting for health check"
|
echo "==> Waiting for health check"
|
||||||
for i in $(seq 1 30); do
|
for i in $(seq 1 30); do
|
||||||
if curl -fsS http://localhost:8001/ >/dev/null 2>&1; then
|
if curl -fsS -H "Host: nohypeai.net" http://localhost:8001/ >/dev/null 2>&1; then
|
||||||
echo "==> Site is up"
|
echo "==> Site is up"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user