EENE Dashboard upload to Gitea
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
$ok = $false
|
||||
1..30 | ForEach-Object {
|
||||
if (Test-NetConnection -ComputerName localhost -Port 5432 -WarningAction SilentlyContinue -ErrorAction SilentlyContinue | Where-Object { $_.TcpTestSucceeded }) {
|
||||
$ok = $true
|
||||
break
|
||||
}
|
||||
param([int]$Port = 54320)
|
||||
|
||||
. "$PSScriptRoot\db-local.ps1"
|
||||
|
||||
for ($i = 1; $i -le 30; $i++) {
|
||||
if (Test-DbPortOpen -Port $Port) { return 0 }
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
if (-not $ok) { exit 1 }
|
||||
|
||||
Write-Host "[ERROR] Database port $Port is not ready."
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user