Fix: export Go path for local auto migrations
This commit is contained in:
@@ -48,7 +48,7 @@ run_compose_api_migrations() {
|
||||
local output=""
|
||||
|
||||
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"
|
||||
return 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user