-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
28 lines (20 loc) · 956 Bytes
/
run.bat
File metadata and controls
28 lines (20 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
chcp 65001 >nul
setlocal enabledelayedexpansion
set "SCRIPT_DIR=%~dp0"
if "%SCRIPT_DIR:~-1%"=="\" set "SCRIPT_DIR=%SCRIPT_DIR:~0,-1%"
echo ===================================================
echo Launching LabSync!
echo Base Folder: %SCRIPT_DIR%
echo ===================================================
:: Windows 1 – server (docker + dotnet)
start "LabSync Server" cmd /k "cd /d "%SCRIPT_DIR%" && docker compose down && timeout /t 5 /nobreak && docker compose up -d && timeout /t 5 /nobreak && dotnet run --project src/LabSync.Server"
timeout /t 1 /nobreak >nul
:: Window 2 – agent
start "LabSync Agent" cmd /k "cd /d "%SCRIPT_DIR%" && dotnet run --project src/LabSync.Agent"
timeout /t 1 /nobreak >nul
:: Window 3 – client (npm build -> preview)
start "LabSync Client" cmd /k "cd /d "%SCRIPT_DIR%\src\client" && npm run build && npm run preview"
echo.
echo All Windows are now open!. (client will run AFTER finishing build.)
pause