fix(phoenix): run.sh 가 옛 프로세스를 못 죽이던 것 — 패턴 phoenix.server.main

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
lee-hyeon-cheol
2026-09-22 17:13:29 +09:00
co-authored by Claude Fable 5.1
parent ac7a459dfc
commit 671f610371
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export PHOENIX_ALLOW_EXTERNAL_RESOURCES=false # 폐쇄망 — 구글 폰트
# export PHOENIX_SQL_DATABASE_URL=postgresql://user:pw@10.196.81.34:5432/dbname # 고객사 PG 쓰려면
# export PHOENIX_SQL_DATABASE_SCHEMA=phoenix
mkdir -p "$PHOENIX_WORKING_DIR"
pkill -f "phoenix serve" 2>/dev/null || true; sleep 1
pkill -f "phoenix.server.main" 2>/dev/null || true; sleep 2 # 프로세스명은 python -m phoenix.server.main serve
cd "$ROOT" && nohup .venv/bin/python -m phoenix.server.main serve > "$ROOT/phoenix.log" 2>&1 &
sleep 6
echo "--- health"; curl -s -o /dev/null -w '%{http_code}\n' "http://127.0.0.1:$PHOENIX_PORT/healthz" || tail -5 "$ROOT/phoenix.log"