12 lines
417 B
Batchfile
12 lines
417 B
Batchfile
@echo off
|
|
cd /d "%~dp0"
|
|
if not defined PORT set "PORT=8001"
|
|
REM 默认与 web.sh 一致:开发双端。仅 API: set WEB_STACK=api
|
|
if /i "%WEB_STACK%"=="api" (
|
|
echo [web] 仅 API 模式 ^(reload^) PORT=%PORT%
|
|
python scripts\launch.py --api-only --host 0.0.0.0 --port %PORT% --reload
|
|
) else (
|
|
echo [web] 开发模式: 浏览器 http://localhost:3000 API %PORT%
|
|
python scripts\launch.py --dev --port %PORT%
|
|
)
|