10 lines
534 B
PowerShell
10 lines
534 B
PowerShell
# Serve the ACG multipage showcase locally, then open it.
|
|
# Usage: powershell -ExecutionPolicy Bypass -File serve.ps1 [port]
|
|
param([int]$Port = 4328)
|
|
$ErrorActionPreference = "Stop"
|
|
Set-Location -Path $PSScriptRoot
|
|
Write-Host "Arizona Computer Guru - showcase (multipage)" -ForegroundColor Yellow
|
|
Write-Host "Serving $PSScriptRoot at http://localhost:$Port/ (Ctrl+C to stop)"
|
|
Start-Process "http://localhost:$Port/"
|
|
if (Get-Command py -ErrorAction SilentlyContinue) { py -m http.server $Port } else { python -m http.server $Port }
|