mirror of
https://github.com/hansjone/netx.git
synced 2026-10-08 23:33:21 +08:00
Release 0.4.5: installer DB wizard, credential key, lean offline Setup.
Choose bundled or external PostgreSQL in the Setup wizard with connection validation; optional NETX_CREDENTIAL_SECRET_KEY; single desktop shortcut; faster uninstall and tray startup for offline Windows packages. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
86dfd41f44
commit
97393cd407
20 changed files with 1531 additions and 146 deletions
|
|
@ -1,4 +1,4 @@
|
|||
param(
|
||||
param(
|
||||
[string]$BindHost = "127.0.0.1",
|
||||
[int]$Port = 8890,
|
||||
[int]$WebPort = 5173,
|
||||
|
|
@ -260,7 +260,11 @@ if ($Background) {
|
|||
Show-LogTail -Path $logFile
|
||||
exit 1
|
||||
}
|
||||
$healthWaitSec = 45
|
||||
# Fresh installs run Alembic upgrades on first boot; 45s is often too short.
|
||||
$healthWaitSec = 180
|
||||
if ($env:NETX_START_HEALTH_WAIT_SEC) {
|
||||
try { $healthWaitSec = [int]$env:NETX_START_HEALTH_WAIT_SEC } catch {}
|
||||
}
|
||||
if (-not (Test-NetxApiListening -HostName $BindHost -LocalPort $Port -WaitSec $healthWaitSec)) {
|
||||
Write-Host "[ERR] Port $Port not listening /health not OK within ${healthWaitSec}s (process may be stuck on DB or schema migration)." -ForegroundColor Red
|
||||
Show-LogTail -Path $errFile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue