This commit is contained in:
hailin 2025-05-18 14:16:23 +08:00
parent f8721ac58d
commit cc0d92cd78
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ export SUPABASE_SERVICE_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdX
# --- 等待 postgrest (通过 Kong proxy) 可访问 ---
echo "[kong] Waiting for PostgREST to be reachable via Kong..."
until curl -s http://localhost:5000/rest/v1/ >/dev/null 2>&1; do
echo "[kong] Still waiting for PostgREST..."
until curl -s -H "apikey: $SUPABASE_ANON_KEY" http://localhost:8000/rest/v1/ >/dev/null; do
echo "Waiting for API /rest/v1/ ..."
sleep 1
done
echo "[kong] PostgREST is reachable. Starting Kong..."