From 173bea0ac13daa9692fd2041a9752a3aa21ed078 Mon Sep 17 00:00:00 2001 From: Marco Allegretti Date: Sat, 31 Jan 2026 14:29:51 +0100 Subject: [PATCH] Fix dev-start podman-compose handling --- scripts/dev-start.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/dev-start.ps1 b/scripts/dev-start.ps1 index 862c758..f00c475 100644 --- a/scripts/dev-start.ps1 +++ b/scripts/dev-start.ps1 @@ -52,7 +52,17 @@ try { # Start PostgreSQL container Write-Host "Starting PostgreSQL..." $composeFile = Join-Path $root 'compose/dev.yml' + podman-compose -f $composeFile up -d 2>$null +$composeExitCode = $LASTEXITCODE +if ($composeExitCode -ne 0) { + podman container exists likwid-postgres 2>$null + $containerExistsExitCode = $LASTEXITCODE + if ($containerExistsExitCode -ne 0) { + throw "Failed to start PostgreSQL via podman-compose (exit code: $composeExitCode)." + } + Write-Host "Warning: podman-compose returned exit code $composeExitCode, but likwid-postgres exists. Continuing." +} # Wait for PostgreSQL to be ready $maxWait = 30