Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure that migrate command exits with non zero error code #2578

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

matthewelwell
Copy link
Contributor

@matthewelwell matthewelwell commented Aug 3, 2023

Changes

Ensures that calling ./run-docker.sh migrate returns a non-zero exit code if one of the chained commands does. Previously, the bash script would continue onto the migrate_analytics_db function, which would (in most cases) return 0 because it doesn't have to do anything.

How did you test this code?

Verified that the following commands exit with 0 and 1 return codes respectively.

DATABASE_URL=<valid db url> ./run-docker.sh
DATABASE_URL=<invalid db url> ./run-docker.sh

@matthewelwell matthewelwell requested review from a team and khvn26 August 3, 2023 16:27
@vercel
Copy link

vercel bot commented Aug 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Aug 3, 2023 4:29pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 3, 2023 4:29pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview Aug 3, 2023 4:29pm

@github-actions
Copy link
Contributor

github-actions bot commented Aug 3, 2023

Uffizzi Preview deployment-32520 was deleted.

@matthewelwell matthewelwell merged commit 6c96ccf into main Aug 3, 2023
16 checks passed
@matthewelwell matthewelwell deleted the fix/migrate-exits-successfully-on-failure branch August 3, 2023 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants