Skip to content

Commit

Permalink
fix: ensure that migrate command exits with non zero error code (#2578)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed Aug 3, 2023
1 parent 9fc5e76 commit 6c96ccf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/scripts/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ set -e

function migrate () {
python manage.py waitfordb && python manage.py migrate && python manage.py createcachetable
migrate_analytics_db
}
function serve() {
# configuration parameters for statsd. Docs can be found here:
Expand Down Expand Up @@ -65,6 +64,7 @@ function go_to_sleep(){
if [ "$1" == "migrate" ]; then
if [ $# -eq 2 ]; then go_to_sleep "$2"; fi
migrate
migrate_analytics_db
elif [ "$1" == "serve" ]; then
if [ $# -eq 2 ]; then go_to_sleep "$2"; fi
serve
Expand All @@ -73,6 +73,7 @@ elif [ "$1" == "run-task-processor" ]; then
elif [ "$1" == "migrate-and-serve" ]; then
if [ $# -eq 2 ]; then go_to_sleep "$2"; fi
migrate
migrate_analytics_db
serve
elif [ "$1" == "migrate-identities" ]; then
migrate_identities "$2"
Expand Down

3 comments on commit 6c96ccf

@vercel
Copy link

@vercel vercel bot commented on 6c96ccf Aug 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-git-main-flagsmith.vercel.app
docs-flagsmith.vercel.app
docs.flagsmith.com
docs.bullet-train.io

@vercel
Copy link

@vercel vercel bot commented on 6c96ccf Aug 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 6c96ccf Aug 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.