fix video label
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
|
||||
接口每次 GET 会「消费」一条未投递快照;仅当响应头 X-Fish-Biomass-New: 1(或 JSON code!=200)时打日志。
|
||||
|
||||
BIOMASS_API_BASE=http://127.0.0.1:8000 POLL_INTERVAL=5 \\
|
||||
python scripts/biomass_poller.py
|
||||
cd <仓库根目录>
|
||||
BIOMASS_API_BASE=http://127.0.0.1:8000 POLL_INTERVAL=5 python3 scripts/biomass_poller.py
|
||||
|
||||
依赖(与 fish_api dev 组一致):httpx、loguru
|
||||
cd fish_api && pip install -e ".[dev]"
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# 仓库根目录入口:与 fish_api/start.sh 等价(启动前清空 SQLite、watch 状态、measure/action 输出目录等)
|
||||
#
|
||||
# conda activate fishserver # 若不用 uv
|
||||
# export PUBLIC_BASE_URL=http://<本机对外IP>:8001
|
||||
# PORT=8001 bash scripts/run_fishserver.sh
|
||||
#
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
exec bash "$ROOT/fish_api/start.sh"
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# 与 scripts/run_fishserver.sh 等价(历史名称保留);均会先执行 app.prestart_fresh 再启动 uvicorn
|
||||
#
|
||||
# bash scripts/start_fishapi_fresh.sh
|
||||
# PORT=8001 bash scripts/start_fishapi_fresh.sh
|
||||
#
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
exec bash "$ROOT/fish_api/start_fresh.sh"
|
||||
9
scripts/start_fresh.sh
Executable file
9
scripts/start_fresh.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# 仓库根入口:等价于 fish_api/start_fresh.sh(先 prestart_fresh 再 uvicorn)
|
||||
#
|
||||
# bash scripts/start_fresh.sh
|
||||
# PORT=8001 bash scripts/start_fresh.sh
|
||||
#
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
exec bash "$ROOT/fish_api/start_fresh.sh"
|
||||
8
scripts/start_no_fresh.sh
Executable file
8
scripts/start_no_fresh.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# 仓库根入口:等价于 fish_api/start_no_fresh.sh(保留 SQLite 与缓存)
|
||||
#
|
||||
# bash scripts/start_no_fresh.sh
|
||||
#
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
exec bash "$ROOT/fish_api/start_no_fresh.sh"
|
||||
Reference in New Issue
Block a user