chatai/supabase/chatai-ui/wrapper.sh

15 lines
425 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
set -e
# --- 等待 Kong 代理接口可用(假设它暴露在 127.0.0.1:8000---
echo "[chatai-ui] Waiting for Kong to be ready at http://localhost:8000/..."
until curl -sSf http://localhost:8000/ > /dev/null; do
echo "[chatai-ui] Kong not ready yet, retrying..."
sleep 1
done
echo "[chatai-ui] Kong is ready."
# --- 切换到项目目录并启动 next.js ---
cd /supabase/chatai-ui
exec npm run start