chore: add Windows backend startup script
This commit is contained in:
@@ -59,6 +59,21 @@ fixture,默认 APK 不携带真实订单资料。
|
||||
|
||||
## 后端运行
|
||||
|
||||
在项目根目录可直接使用 Windows 启动脚本。首次运行或更新代码后有 pending migration 时,
|
||||
显式传入 `--migrate`;脚本不会隐式改动数据库。
|
||||
|
||||
```powershell
|
||||
.\start-backend.bat --migrate
|
||||
```
|
||||
|
||||
后续启动:
|
||||
|
||||
```powershell
|
||||
.\start-backend.bat
|
||||
```
|
||||
|
||||
等价的手工命令如下:
|
||||
|
||||
```powershell
|
||||
Set-Location backend-api
|
||||
$env:GOTOOLCHAIN = "local"
|
||||
|
||||
Reference in New Issue
Block a user