861da54066
apple / swift (push) Successful in 1m6s
apple / screenshots (push) Has been cancelled
ci / rust (push) Has been cancelled
ci / web (push) Has been cancelled
ci / docs-site (push) Has been cancelled
ci / bench (push) Has been cancelled
android-screenshots / screenshots (push) Successful in 50s
android / android (push) Successful in 3m25s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Successful in 5s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Successful in 33s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 4s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 4s
windows-host / package (push) Successful in 6m28s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 52s
windows-msix / package (arm64, C:\Users\Public\ffmpeg-arm64, aarch64-pc-windows-msvc, C:\t-a64) (push) Successful in 1m3s
windows-msix / package (x64, C:\Users\Public\ffmpeg, x86_64-pc-windows-msvc, C:\t) (push) Successful in 1m5s
linux-client-screenshots / screenshots (push) Successful in 2m9s
release / apple (push) Successful in 9m25s
docker / deploy-docs (push) Successful in 20s
web-screenshots / screenshots (push) Successful in 2m33s
deb / build-publish (push) Successful in 3m19s
decky / build-publish (push) Successful in 19s
flatpak / build-publish (push) Successful in 5m9s
rpm / build-publish (bazzite, punktfunk-fedora-rpm) (push) Successful in 9m21s
rpm / build-publish (fedora-44, punktfunk-fedora44-rpm) (push) Successful in 8m38s
Port 3000 collides with half the dev-server ecosystem; 47992 sits next to the mgmt API (47990) in the punktfunk port family. Updates the run scripts, systemd/scheduled-task units, Dockerfile, Windows firewall rule + installer, packaging, and every doc that referenced :3000. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
36 lines
1.5 KiB
PowerShell
36 lines
1.5 KiB
PowerShell
<#
|
|
Rebuild the web mgmt console from the CURRENT web/ source and restart the PunktfunkWeb task.
|
|
|
|
powershell -ExecutionPolicy Bypass -File scripts\windows\build-web.ps1
|
|
|
|
bun is both the build tool AND the runtime: vite.config's Nitro noExternals bundles every dep
|
|
into the self-contained .output (no node_modules, nothing for bun to fail to resolve), so the
|
|
PunktfunkWeb task runs web\web-run.cmd -> bun .output\server\index.mjs on :47992.
|
|
#>
|
|
$ErrorActionPreference = 'Stop'
|
|
$repo = Split-Path (Split-Path $PSScriptRoot)
|
|
$web = Join-Path $repo 'web'
|
|
$bun = 'C:\Users\Public\bun\bin\bun.exe'
|
|
$task = 'PunktfunkWeb'
|
|
if (-not (Test-Path $bun)) { throw "bun not found at $bun" }
|
|
|
|
Set-Location $web
|
|
Write-Host "bun install + build ..."
|
|
& $bun install
|
|
& $bun run build
|
|
if ($LASTEXITCODE -ne 0) { throw "web build failed (exit $LASTEXITCODE)" }
|
|
# No .output/server install: noExternals means the output has no externalized deps to resolve.
|
|
|
|
Write-Host "restarting $task ..."
|
|
& schtasks /end /tn $task 2>$null | Out-Null
|
|
Get-CimInstance Win32_Process -Filter "Name='bun.exe' OR Name='node.exe'" -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.CommandLine -match 'index\.mjs' } |
|
|
ForEach-Object { Stop-Process -Id $_.ProcessId -Force -ErrorAction SilentlyContinue }
|
|
Start-Sleep 2
|
|
& schtasks /run /tn $task | Out-Null
|
|
Start-Sleep 5
|
|
try {
|
|
$r = Invoke-WebRequest 'http://127.0.0.1:47992/login' -UseBasicParsing -TimeoutSec 10
|
|
Write-Host "DONE - web /login -> HTTP $($r.StatusCode)"
|
|
} catch { Write-Warning "web restarted but /login check failed: $($_.Exception.Message)" }
|