docs: 修正 Sense 验证命令格式 (#21)
@@ -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 部署验证。
|
||||
<!-- sense-runtime:end -->
|
||||
|
||||
Reference in New Issue
Block a user