chore(dev): run mobile uni through portless

This commit is contained in:
2026-07-09 14:52:34 +08:00
parent 1c47e250c4
commit 54b2b0dbbc
5 changed files with 40 additions and 27 deletions
+1 -5
View File
@@ -21,14 +21,10 @@
## 快速启动
```bash
# 终端 1
./scripts/dev.sh
# 终端 2
cd mobile-uni && portless run --name wygj-mobile-uni npm run dev
```
首次启动或需要重建本地 MVP 数据库时执行 `./scripts/dev.sh --reset`。`./scripts/dev.sh` 启动后端、管理端和旧移动端兜底;后端与管理端默认分别通过 `https://wygj-api.localhost/`、`https://wygj-admin.localhost/` 访问,`portless` 启动当前 `mobile-uni` 用户侧。详细端口、默认账号和验证项见 [本地运行手册](docs/DEV_SETUP.md)。
首次启动或需要重建本地 MVP 数据库时执行 `./scripts/dev.sh --reset`。`./scripts/dev.sh` 默认通过 portless 启动后端、管理端和当前 `mobile-uni` 用户侧,对应入口为 `https://wygj-api.localhost/`、`https://wygj-admin.localhost/`、`https://wygj-mobile-uni.localhost/h5/`。只有显式 `PORTLESS=0 ./scripts/dev.sh` 时才回退固定端口和旧移动端兜底。详细端口、默认账号和验证项见 [本地运行手册](docs/DEV_SETUP.md)。
## 目录