fix start and install bat
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user