From f10b86c088c43dfe66ab9bc033b22552b527565a Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 17 Sep 2026 07:56:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(deploy):=20start=5Fall=20=E7=94=9F?= =?UTF-8?q?=E4=BF=A1=E6=AE=B5=E5=B0=8A=E9=87=8D=20BIOFLOW=5FENABLED(?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=20false=3D=E6=97=A0=E7=94=9F=E4=BF=A1?= =?UTF-8?q?=E7=89=88)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- tooling/build_all.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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