windows start scripts

This commit is contained in:
2026-03-08 16:24:38 +01:00
parent 9030d1a8b0
commit 4ccb6303f3
3 changed files with 35 additions and 0 deletions

27
dos-start-back.bat Normal file
View File

@@ -0,0 +1,27 @@
<# : batch portion
@echo off
set "SCRIPT_DIR=%~dp0"
powershell -ExecutionPolicy Bypass "iex((Get-Content '%~f0' -Raw))"
exit /b
#>
Set-Location (Join-Path $env:SCRIPT_DIR "dotnet")
$jobs = @()
$jobs += Start-Job -ScriptBlock { Set-Location $using:PWD; dotnet run --project AipsWebApi 2>&1 | ForEach-Object { "[WebApi] $_" } }
$jobs += Start-Job -ScriptBlock { Set-Location $using:PWD; dotnet run --project AipsRT 2>&1 | ForEach-Object { "[RT] $_" } }
$jobs += Start-Job -ScriptBlock { Set-Location $using:PWD; dotnet run --project AipsWorker 2>&1 | ForEach-Object { "[Worker] $_" } }
try {
while ($jobs | Where-Object { $_.State -eq 'Running' }) {
foreach ($job in $jobs) {
Receive-Job -Job $job
}
Start-Sleep -Milliseconds 200
}
foreach ($job in $jobs) {
Receive-Job -Job $job
}
} finally {
$jobs | Stop-Job -PassThru | Remove-Job
}

4
dos-start-front.bat Normal file
View File

@@ -0,0 +1,4 @@
@echo off
cd /d "%~dp0front"
bun dev

4
dos-start-infra.bat Normal file
View File

@@ -0,0 +1,4 @@
@echo off
cd /d "%~dp0docker"
docker compose -p aips --env-file ..\.env up