apidocs: Updated Powershell script to allow passing in the staging port
diff --git a/websites/apidocs/docs.ps1 b/websites/apidocs/docs.ps1
index 0cde7e9..fd42cf0 100644
--- a/websites/apidocs/docs.ps1
+++ b/websites/apidocs/docs.ps1
@@ -29,7 +29,9 @@
[Parameter(Mandatory = $false)]
[string] $LogLevel = 'Warning',
[Parameter(Mandatory = $false)]
- [string] $BaseUrl = 'http://localhost:8080'
+ [string] $BaseUrl = 'http://localhost:8080',
+ [Parameter(Mandatory = $false)]
+ [int] $StagingPort = 8080
)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
@@ -225,7 +227,7 @@
else {
# build + serve (for testing)
Write-Host "starting website..."
- & $DocFxExe $DocFxJsonSite --log "$DocFxLog" --loglevel $LogLevel --serve --debug
+ & $DocFxExe $DocFxJsonSite --log "$DocFxLog" --loglevel $LogLevel --serve --port $StagingPort --debug
}
}