32 lines
594 B
Batchfile
32 lines
594 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
title SystemSimulationApp ReactFlow - 127.0.0.1:5173
|
|
|
|
set "FRONTEND_DIR=%~dp0frontend"
|
|
set "START_SCRIPT=%FRONTEND_DIR%\start-dev.bat"
|
|
|
|
if not exist "%START_SCRIPT%" (
|
|
echo [ERROR] ReactFlow start script was not found:
|
|
echo %START_SCRIPT%
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo Starting ReactFlow at http://127.0.0.1:5173
|
|
echo Press Ctrl+C to stop the service.
|
|
echo.
|
|
|
|
cd /d "%FRONTEND_DIR%"
|
|
call "%START_SCRIPT%"
|
|
set "EXIT_CODE=%ERRORLEVEL%"
|
|
|
|
if not "%EXIT_CODE%"=="0" (
|
|
echo.
|
|
echo [ERROR] ReactFlow exited with code %EXIT_CODE%.
|
|
pause
|
|
)
|
|
|
|
exit /b %EXIT_CODE%
|