Files
Live_RC/windows/start_backend.bat

27 lines
489 B
Batchfile

@echo off
setlocal
for %%I in ("%~dp0..") do set "APP_DIR=%%~fI"
where node.exe >nul 2>&1
if errorlevel 1 (
echo [ERROR] Node.js was not found. Run windows\install.bat first.
exit /b 1
)
pushd "%APP_DIR%"
call npm.cmd start
set "EXIT_CODE=%ERRORLEVEL%"
popd
if not "%EXIT_CODE%"=="0" (
echo [ERROR] Backend start failed.
exit /b %EXIT_CODE%
)
echo [OK] Backend started in background
echo URL: http://localhost:8081
echo Logs: %APP_DIR%\logs\server.out.log
endlocal