This is an automated email from the ASF dual-hosted git repository. nightowl888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit d633dc604f7c61771b40542a2eb076b5d89d8f9a Author: Shad Storhaug <[email protected]> AuthorDate: Fri Oct 23 19:34:12 2020 +0700 apidocs: Updated Powershell script to allow passing in the staging port --- websites/apidocs/docs.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 @@ param ( [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 @@ if ($?) { 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 } }
