ver0.1
This commit is contained in:
17
start_voice_confirmation_web.bat
Normal file
17
start_voice_confirmation_web.bat
Normal file
@@ -0,0 +1,17 @@
|
||||
@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%
|
||||
Reference in New Issue
Block a user