Fix: export Go path for local auto migrations

This commit is contained in:
MangoPig
2026-07-06 13:22:50 +01:00
parent b232d6ef36
commit d421a10189
+1 -1
View File
@@ -48,7 +48,7 @@ run_compose_api_migrations() {
local output="" local output=""
while (( attempt <= max_attempts )); do while (( attempt <= max_attempts )); do
if output=$(docker compose -f "$compose_file" exec -T "$service_name" sh -lc 'go run ./cmd/migrate up' 2>&1); then if output=$(docker compose -f "$compose_file" exec -T "$service_name" sh -lc 'export PATH="$PATH:/usr/local/go/bin"; go run ./cmd/migrate up' 2>&1); then
printf '%s\n' "$output" printf '%s\n' "$output"
return 0 return 0
fi fi