start_server.bat
532 Bytes
@echo off
rem Dev-machine server (port / public url / database come from .env in the repo root).
rem The Win7 store edge connects to it through PUBLIC_BASE_URL.
rem Python: set PY before running, default = the autoRestock conda env.
cd /d "%~dp0..\..\server"
if "%PY%"=="" set PY=D:\software_install\anaconda_env\envs\autoRestock\python.exe
if not exist "%PY%" (
echo [ERROR] python not found: %PY% ^(set PY=...\python.exe first^)
pause
exit /b 1
)
set PYTHONNOUSERSITE=1
set PYTHONIOENCODING=utf-8
"%PY%" -m app.main
pause