feat(deploy): start_all 生信段尊重 BIOFLOW_ENABLED(默认 false=无生信版)

- 176 默认(含开机自启 plantai-apps.service)即为无生信启动版:
  BIOFLOW_ENABLED=false 时 start_all 不拉起 8098,生信 TAB/入口不可见
- 开关来自 sdk/.env,切回生信版=bash toggle_bioflow_176.sh on

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 07:56:49 +08:00
co-authored by Claude Fable 5
parent d0e6c76ec1
commit f10b86c088
+4 -1
View File
@@ -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