@echo off
setlocal
cd /d "%~dp0\..\.."

set ALLOW_UI_MOCK=1
set PHP_CLI=php

where %PHP_CLI% >nul 2>&1
if errorlevel 1 (
  echo [ERROR] PHP not found in PATH.
  echo Install PHP or add php.exe to PATH, then run again.
  pause
  exit /b 1
)

echo Starting SaleOs in MOCK UI mode on http://127.0.0.1:8000/?mock_ui=1
echo Press Ctrl+C to stop.
%PHP_CLI% -S 127.0.0.1:8000 -t public

endlocal
