From 5b9af931c7bc20746e3ec3da1fb43a8ba8ba309d Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Thu, 5 Nov 2026 19:03:55 +0800 Subject: [PATCH] Wait for final PostgreSQL startup before migration checks --- deploy/check-schema.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/check-schema.sh b/deploy/check-schema.sh index 32756c5..69de8a7 100644 --- a/deploy/check-schema.sh +++ b/deploy/check-schema.sh @@ -8,7 +8,7 @@ trap cleanup EXIT docker run -d --name "$container" --network none \ -e POSTGRES_HOST_AUTH_METHOD=trust postgres:17-alpine >/dev/null for attempt in {1..30}; do - if docker exec "$container" pg_isready -U postgres >/dev/null 2>&1; then break; fi + if docker exec "$container" pg_isready -h 127.0.0.1 -U postgres >/dev/null 2>&1; then break; fi sleep 1 done psql() { docker exec -i "$container" psql -X -U postgres -v ON_ERROR_STOP=1; }