Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
53 lines
2.8 KiB
Batchfile
53 lines
2.8 KiB
Batchfile
@echo off
|
|
setlocal
|
|
set "CURRENT_DIR=%CD%"
|
|
echo ***** Current directory: %CURRENT_DIR% *****
|
|
set "PYTHONPATH=%CURRENT_DIR%"
|
|
|
|
rem set HF_ENDPOINT=https://hf-mirror.com
|
|
|
|
if not defined MPT_WEBUI_HOST set "MPT_WEBUI_HOST=127.0.0.1"
|
|
if not defined MPT_WEBUI_PORT set "MPT_WEBUI_PORT=8501"
|
|
|
|
set "STREAMLIT_CMD="
|
|
if exist "%CURRENT_DIR%\.venv\Scripts\python.exe" (
|
|
set "STREAMLIT_CMD="%CURRENT_DIR%\.venv\Scripts\python.exe" -m streamlit"
|
|
) else if exist "%CURRENT_DIR%\lib\python\python.exe" (
|
|
set "STREAMLIT_CMD="%CURRENT_DIR%\lib\python\python.exe" -m streamlit"
|
|
) else (
|
|
where uv >nul 2>nul
|
|
if not errorlevel 1 set "STREAMLIT_CMD=uv run streamlit"
|
|
)
|
|
|
|
if not defined STREAMLIT_CMD (
|
|
where streamlit >nul 2>nul
|
|
if not errorlevel 1 (
|
|
echo ***** Warning: using streamlit from PATH. If dependencies fail, run 'uv sync --frozen' first. *****
|
|
set "STREAMLIT_CMD=streamlit"
|
|
)
|
|
)
|
|
|
|
if not defined STREAMLIT_CMD (
|
|
echo ***** Neither project Python, uv, nor streamlit was found. Please install dependencies first. *****
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
set "SELECTED_WEBUI_PORT="
|
|
for /f %%P in ('powershell -NoProfile -ExecutionPolicy Bypass -Command "$hostAddress=$null; foreach ($address in [Net.Dns]::GetHostAddresses($env:MPT_WEBUI_HOST)) { if ($address.AddressFamily -eq [Net.Sockets.AddressFamily]::InterNetwork) { $hostAddress=$address; break } }; if ($null -eq $hostAddress) { exit 1 }; $preferred=[int]$env:MPT_WEBUI_PORT; $candidates=New-Object System.Collections.Generic.List[int]; $candidates.Add($preferred); foreach ($candidate in 8502..8599) { if ($candidate -ne $preferred) { $candidates.Add($candidate) } }; foreach ($port in $candidates) { $socket=[Net.Sockets.Socket]::new([Net.Sockets.AddressFamily]::InterNetwork,[Net.Sockets.SocketType]::Stream,[Net.Sockets.ProtocolType]::Tcp); try { $socket.Bind([Net.IPEndPoint]::new($hostAddress,$port)); $socket.Close(); Write-Output $port; exit 0 } catch { try { $socket.Close() } catch {} } }; exit 1"') do set "SELECTED_WEBUI_PORT=%%P"
|
|
|
|
if not defined SELECTED_WEBUI_PORT (
|
|
echo ***** No available WebUI port found in 8501-8599 for %MPT_WEBUI_HOST%. *****
|
|
echo ***** If Windows reports WinError 10013, check reserved ports: netsh interface ipv4 show excludedportrange protocol=tcp *****
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
if not "%SELECTED_WEBUI_PORT%"=="%MPT_WEBUI_PORT%" (
|
|
echo ***** Port %MPT_WEBUI_PORT% is unavailable, using %SELECTED_WEBUI_PORT% instead. *****
|
|
)
|
|
set "MPT_WEBUI_PORT=%SELECTED_WEBUI_PORT%"
|
|
|
|
echo ***** WebUI address: http://%MPT_WEBUI_HOST%:%MPT_WEBUI_PORT% *****
|
|
%STREAMLIT_CMD% run .\webui\Main.py --server.address=%MPT_WEBUI_HOST% --server.port=%MPT_WEBUI_PORT% --browser.serverAddress=%MPT_WEBUI_HOST% --browser.gatherUsageStats=False --client.toolbarMode=minimal --logger.hideWelcomeMessage=True --server.showEmailPrompt=False --server.enableCORS=True
|