Skip to content

Commit

Permalink
Increase wait time for database setup to 200s
Browse files Browse the repository at this point in the history
  • Loading branch information
erssebaggala committed Mar 3, 2019
2 parents d86a411 + e054d9a commit a6299ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrate-and-start-web-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export FLASK_APP=wait_for_database.py
flask run --host=0.0.0.0 --port=8181 &

# Wait abit for the database to startup
sleep 10
sleep 200

cd /migrations

Expand All @@ -22,4 +22,4 @@ unset FLASK_APP

cd /app
#Start api service
/usr/bin/gunicorn --config /app/gunicorn_config.py wsgi:app
/usr/bin/gunicorn --config /app/gunicorn_config.py wsgi:app

0 comments on commit a6299ac

Please sign in to comment.