fix start and install bat

This commit is contained in:
larssand
2026-08-24 18:29:39 +02:00
parent aa74da0bdf
commit 8b7153bf6a
8 changed files with 89 additions and 59 deletions

View File

@@ -128,16 +128,17 @@ if ($OpenFirewall) {
}
if ($StartServer) {
Write-Step "Starting RaceController"
& $npmCommand start
Write-Step "Restarting RaceController after installation"
& $npmCommand restart
if ($LASTEXITCODE -ne 0) {
throw "RaceController did not start (exit code $LASTEXITCODE)."
throw "RaceController did not restart (exit code $LASTEXITCODE)."
}
}
Write-Host ""
Write-Host "Windows setup completed." -ForegroundColor Green
Write-Host "Start: npm start"
Write-Host "Status: npm run status"
Write-Host "Stop: npm stop"
Write-Host "Start: npm.cmd start"
Write-Host "Restart: npm.cmd restart"
Write-Host "Status: npm.cmd run status"
Write-Host "Stop: npm.cmd stop"
Write-Host "Open: http://localhost:8081"