This commit is contained in:
2026-05-19 23:36:58 +12:00
parent 5172588488
commit a7f8a619b1
68 changed files with 4486 additions and 1430 deletions
+14 -4
View File
@@ -180,10 +180,19 @@ function Invoke-SiteCheck {
try {
$response = Invoke-WebRequest -Uri $Url -MaximumRedirection 5 -TimeoutSec 30
Write-Host "[deploy] Site responded with HTTP $($response.StatusCode)"
if ($response.StatusCode -ge 200 -and $response.StatusCode -lt 400) {
Write-Host "[deploy] Site responded with HTTP $($response.StatusCode)"
return
}
throw "Unexpected HTTP $($response.StatusCode) from $Url"
}
catch {
Write-Warning "Production site check failed: $($_.Exception.Message)"
$message = "Post-deploy site check failed: $($_.Exception.Message). Verify URL: $Url"
if ($SkipSiteCheck) {
Write-Warning $message
} else {
throw $message
}
}
}
@@ -265,8 +274,9 @@ Write-Host ' - No global Docker prune/stop/delete commands are used.'
Write-Host ' - Shared nginx will be updated and reloaded with the Docker-DNS-based config.'
Write-Host ' - Subdomains served by this stack:'
Write-Host ' goodwalk.co.nz / www.goodwalk.co.nz (marketing)'
Write-Host ' onboarding.goodwalk.co.nz (client onboarding)'
Write-Host ' admin.goodwalk.co.nz (owner admin dashboard)'
Write-Host ' clients.goodwalk.co.nz (client onboarding + contracts)'
Write-Host ' cp.goodwalk.co.nz (owner admin dashboard)'
Write-Host ' onboarding/admin remain legacy redirect aliases'
if ($SeedAdminData) {
Write-Host ' - Admin data seed: mail-api will OVERWRITE postgres admin_kv from the JSON volume.'
}