Initial commit: FishServer monorepo (FishAction, FishMeasure, fish_api)

Made-with: Cursor
This commit is contained in:
zaiun xu
2026-04-08 19:32:23 +08:00
commit 9df21f80ef
180 changed files with 96298 additions and 0 deletions

20
scripts/run_fishserver.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# 在「单一 Python 环境」下启动网关FishMeasure / FishAction 子进程默认使用同一解释器。
#
# conda activate fishserver
# export PUBLIC_BASE_URL=http://<本机对外IP>:8001 # 可选,填 video URL 前缀
# PORT=8001 bash scripts/run_fishserver.sh
#
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT/fish_api"
export PUBLIC_BASE_URL="${PUBLIC_BASE_URL:-http://127.0.0.1:8000}"
# 单一环境:勿设置 PYTHON_FISH_MEASURE / PYTHON_FISH_ACTION使用当前 uvicorn 的 Python
unset PYTHON_FISH_MEASURE PYTHON_FISH_ACTION 2>/dev/null || true
PORT="${PORT:-8000}"
HOST="${HOST:-0.0.0.0}"
exec uvicorn app.main:app --host "$HOST" --port "$PORT"