chore: split local development services
This commit is contained in:
+12
-2
@@ -93,12 +93,22 @@ Compose 中的 control-plane 访问宿主机 gateway 时,网关 Endpoint 登
|
||||
|
||||
### 裸机开发
|
||||
|
||||
首次安装前端依赖:
|
||||
|
||||
```bash
|
||||
npm --prefix web ci
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
`pnpm dev:backend` 只启动 PostgreSQL 依赖,并在启动 control-plane 前检查宿主机 gateway;它不会创建 browser runtime 或替代 gateway。
|
||||
分别在终端启动依赖和服务:
|
||||
|
||||
```bash
|
||||
pnpm env # PostgreSQL
|
||||
pnpm gateway # native browser gateway
|
||||
pnpm backend # Go control-plane,Air 热加载
|
||||
pnpm frontend # Vite,HMR
|
||||
```
|
||||
|
||||
`pnpm backend` 不会隐式启动 PostgreSQL 或 gateway;`pnpm gateway` 直接运行当前用户的 native gateway,不要求 systemd。停止各服务时关闭对应终端即可。
|
||||
|
||||
默认联调地址:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user