Files
gitlab-instance-0a899031_sh/d2ypp2/web.bat
2026-05-16 19:24:30 -05:00

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%
)