diff --git a/tooling/build_all.sh b/tooling/build_all.sh index 58a0db5..a3d9e1f 100755 --- a/tooling/build_all.sh +++ b/tooling/build_all.sh @@ -179,7 +179,10 @@ bash "$ROOT/vstore_restart.sh" || echo "[vstore] 拉起失败,向量化不可 # 不存在则跳过——未部署生信的机器无此树,不应报错。失败不阻断主服务。 # 布局约定:生信树在 install 同级 bioflow/(176: /srv/plantai/bioflow/)。 BIOFLOW_RESTART="$ROOT/../bioflow/bioflow_service/restart.sh" -if [ -x "$BIOFLOW_RESTART" ]; then +# 2026-09-17:生信开关来自 sdk/.env(与环境变量同名时后者优先;未设默认 false) +[ -f "$ROOT/sdk/.env" ] && . "$ROOT/sdk/.env" +BIOFLOW_ENABLED_VAL="${BIOFLOW_ENABLED:-false}" +if [ "$BIOFLOW_ENABLED_VAL" = "true" ] && [ -x "$BIOFLOW_RESTART" ]; then echo "[bioflow] 探测到生信服务,启动/重启中" if ( bash "$BIOFLOW_RESTART" >/dev/null 2>&1 && sleep 3 \ && curl -s --max-time 8 http://127.0.0.1:8098/api/bioflow/health >/dev/null ); then