Files
operating-room-monitor-server/start_voice_confirmation_web.bat
2026-04-28 10:41:48 +08:00

18 lines
606 B
Batchfile

@echo off
REM 用法: start_voice_confirmation_web.bat [端口]
REM 或: start_voice_confirmation_web.bat --plain [端口] 无热重载
setlocal
cd /d "%~dp0"
set "PLA=0"
if /I "%~1"=="--plain" set "PLA=1" & shift
set "PORT=%~1"
if "%PORT%"=="" set "PORT=8080"
if "%PLA%"=="1" (
cd web\voice-confirmation
echo 语音确认(无热重载) http://127.0.0.1:%PORT%/
python -m http.server %PORT% --bind 127.0.0.1
exit /b 0
)
echo 语音确认(livereload) http://127.0.0.1:%PORT%/
uv run --group dev python scripts\dev_static_livereload.py --root web\voice-confirmation --host 127.0.0.1 --port %PORT%