This commit is contained in:
hailin 2025-05-18 16:16:45 +08:00
parent 55b6591356
commit 08b4f80e21
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 -H "apikey: $SUPABASE_ANON_KEY" http://localhost:8000/rest/v1/ >/dev/null; do
echo "Waiting for API /rest/v1/ ..."
until curl -s http://localhost:3000/ >/dev/null; do
echo "[kong] Still waiting for PostgREST..."
sleep 1
done
echo "[kong] PostgREST is reachable. Starting Kong..."