26 lines
631 B
Batchfile
26 lines
631 B
Batchfile
@echo off
|
|
title BetterGI Live Streaming Service
|
|
cd /d "%~dp0"
|
|
set PYTHON=%~dp0.venv-tts\Scripts\python.exe
|
|
|
|
if not exist "%PYTHON%" (
|
|
set PYTHON=%~dp0.venv\Scripts\python.exe
|
|
)
|
|
|
|
if not exist "%PYTHON%" (
|
|
echo Python virtual environment not found.
|
|
echo Checked .venv-tts and .venv under: %~dp0
|
|
echo Please run setup first or ask WorkBuddy to repair dependencies.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo Starting Live-streaming service
|
|
echo Admin page: http://127.0.0.1:5191/admin
|
|
echo Data page: http://127.0.0.1:5191/data
|
|
echo Press Ctrl+C to stop
|
|
echo.
|
|
|
|
"%PYTHON%" app\main.py --role all --host 0.0.0.0 --port 5191
|
|
pause
|