Files
Kevin 6bc6801df9 统一 Docker Compose 部署,并将客户端拆分为独立子项目。
移除宿主机/conda 启动脚本与 dev 联调工具,后端仅通过 docker compose 部署并默认启用 GPU。模拟客户端与语音确认页迁入 clients/ 下自包含目录,切断对后端源码路径的依赖。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-21 15:56:53 +08:00

24 lines
1.0 KiB
Batchfile
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
REM 纯静态语音确认页:必须用 HTTP 打开(勿用 file://
REM 用法: start_http.bat [端口],默认 8080可选环境变量 VOCH_HTTP_BIND默认 0.0.0.0
setlocal
cd /d "%~dp0"
set "PORT=%~1"
if "%PORT%"=="" set "PORT=8080"
if "%VOCH_HTTP_BIND%"=="" set "VOCH_HTTP_BIND=0.0.0.0"
set "LAN_IP="
for /f "usebackq delims=" %%I in (`powershell -NoProfile -Command "Get-NetIPAddress -AddressFamily IPv4 ^| Where-Object {$_.IPAddress -notlike '127.*' -and $_.PrefixOrigin -ne 'WellKnown'} ^| Select-Object -First 1 -ExpandProperty IPAddress" 2^>nul`) do set "LAN_IP=%%I"
echo 语音确认静态页监听: %VOCH_HTTP_BIND%:%PORT%
if "%VOCH_HTTP_BIND%"=="0.0.0.0" (
echo 本机访问: http://127.0.0.1:%PORT%/
if not "%LAN_IP%"=="" (
echo 局域网访问: http://%LAN_IP%:%PORT%/
echo 服务端 Base URL 常用: http://%LAN_IP%:38080
)
) else (
echo 访问: http://%VOCH_HTTP_BIND%:%PORT%/
)
echo Ctrl+C 停止
python -m http.server %PORT% --bind %VOCH_HTTP_BIND% --directory "%CD%"
exit /b %ERRORLEVEL%