Skip to content

Commit 4b426dc

Browse files
author
Bart Koelman
committed
Fixed: kill webserver that serves docs afterwards, so the script can be rerun in the same pwsh session.
1 parent 4a73a2e commit 4b426dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/build-dev.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ Copy-Item home/*.ico _site/
1414
Copy-Item -Recurse home/assets/* _site/styles/
1515

1616
cd _site
17-
httpserver &
17+
$webServerJob = httpserver &
1818
Start-Process "http://localhost:8080/"
1919
cd ..
2020

2121
Write-Host ""
2222
Write-Host "Web server started. Press Enter to close."
2323
$key = [Console]::ReadKey()
24+
25+
Stop-Job -Id $webServerJob.Id
26+
Get-job | Remove-Job

0 commit comments

Comments
 (0)