website: Updated Powershell script to allow passing in the staging port
diff --git a/websites/site/site.ps1 b/websites/site/site.ps1
index fa92914..0bac019 100644
--- a/websites/site/site.ps1
+++ b/websites/site/site.ps1
@@ -27,7 +27,10 @@
# LogLevel can be: Diagnostic, Verbose, Info, Warning, Error
[Parameter(Mandatory=$false)]
[string]
- $LogLevel = 'Info'
+ $LogLevel = 'Info',
+ [Parameter(Mandatory=$false)]
+ [int]
+ $StagingPort = 8081
)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
@@ -81,6 +84,6 @@
else {
# build + serve (for testing)
Write-Host "starting website..."
- & $DocFxExe $DocFxJson --serve --port 8081
+ & $DocFxExe $DocFxJson --serve --port $StagingPort
}
}
\ No newline at end of file