From 0a0354b0fed4c7edc68a1c6c887a0f2886e47541 Mon Sep 17 00:00:00 2001 From: ila <2+ila@noreply.git.ilapage.cn> Date: Wed, 12 Aug 2026 16:50:32 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=AD=A3=20Sense=20=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E5=91=BD=E4=BB=A4=E6=A0=BC=E5=BC=8F=20(#21)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Local-Development-and-Verification.-.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Local-Development-and-Verification.-.md b/Local-Development-and-Verification.-.md index 1df2ae3..4ef46b7 100644 --- a/Local-Development-and-Verification.-.md +++ b/Local-Development-and-Verification.-.md @@ -109,18 +109,18 @@ pnpm --version 使用根 `goadmin-baseline.json` 的精确版本。当前机器可用的隔离 Go 路径为开发机临时工具目录,不应写入部署配置。 ```powershell -+$env:PATH = 'C:\Users\ila20\AppData\Local\Temp\yovision-tools\go1.26.5\go\bin;' + $env:PATH -+powershell -ExecutionPolicy Bypass -File .\Sense\scripts\bootstrap\check-toolchain.ps1 -+cd Sense\server -+go test ./... -+go build ./... -+cd ..\ui -+corepack pnpm@9.15.1 install --frozen-lockfile -+corepack pnpm@9.15.1 lint -+corepack pnpm@9.15.1 build -+cd ..\.. -+powershell -ExecutionPolicy Bypass -File .\Sense\scripts\bootstrap\smoke.ps1 -+``` +$env:PATH = 'C:\Users\ila20\AppData\Local\Temp\yovision-tools\go1.26.5\go\bin;' + $env:PATH +powershell -ExecutionPolicy Bypass -File .\Sense\scripts\bootstrap\check-toolchain.ps1 +cd Sense\server +go test ./... +go build ./... +cd ..\ui +corepack pnpm@9.15.1 install --frozen-lockfile +corepack pnpm@9.15.1 lint +corepack pnpm@9.15.1 build +cd ..\.. +powershell -ExecutionPolicy Bypass -File .\Sense\scripts\bootstrap\smoke.ps1 +``` 正式后端启动必须设置 `SENSE_DATABASE_MODE=postgres` 和仓库外提供的 `SENSE_DATABASE_URL`。健康检查为 `GET /healthz`,就绪检查为 `GET /readyz`。本地 smoke 明确设置 `SENSE_DATABASE_MODE=memory`,不能代替 PostgreSQL 部署验证。