sync: auto-sync from GURU-5070 at 2026-06-14 20:04:14
Author: Mike Swanson Machine: GURU-5070 Timestamp: 2026-06-14 20:04:14
This commit is contained in:
11
projects/acg-website-showcase/serve.ps1
Normal file
11
projects/acg-website-showcase/serve.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
# Serve the ACG website showcase locally, then open it.
|
||||
# Usage: powershell -ExecutionPolicy Bypass -File serve.ps1 [port]
|
||||
param([int]$Port = 4327)
|
||||
$ErrorActionPreference = "Stop"
|
||||
Set-Location -Path $PSScriptRoot
|
||||
Write-Host "Arizona Computer Guru - showcase" -ForegroundColor Yellow
|
||||
Write-Host "Serving $PSScriptRoot at http://localhost:$Port/ (Ctrl+C to stop)"
|
||||
Start-Process "http://localhost:$Port/"
|
||||
# Prefer the launcher 'py'; fall back to python.
|
||||
$pyCmd = (Get-Command py -ErrorAction SilentlyContinue)
|
||||
if ($pyCmd) { py -m http.server $Port } else { python -m http.server $Port }
|
||||
Reference in New Issue
Block a user