Skip to content

Commit

Permalink
In docker-entrypoint ensure tables exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Short authored and jezdez committed Dec 10, 2018
1 parent 3ee7537 commit 0ec31e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -e

worker() {
/app/manage.py db upgrade
WORKERS_COUNT=${WORKERS_COUNT:-2}
QUEUES=${QUEUES:-queries,scheduled_queries,celery}

Expand All @@ -10,6 +11,7 @@ worker() {
}

scheduler() {
/app/manage.py db upgrade
WORKERS_COUNT=${WORKERS_COUNT:-1}
QUEUES=${QUEUES:-celery}

Expand All @@ -19,6 +21,7 @@ scheduler() {
}

server() {
/app/manage.py db upgrade
exec /usr/local/bin/gunicorn -b 0.0.0.0:5000 --name redash -w${REDASH_WEB_WORKERS:-4} redash.wsgi:app
}

Expand Down

0 comments on commit 0ec31e8

Please sign in to comment.