From 0ec31e8facb0626b35cb556df2e8c2381c5b771b Mon Sep 17 00:00:00 2001 From: Allen Short Date: Wed, 12 Apr 2017 22:02:42 +0000 Subject: [PATCH] In docker-entrypoint ensure tables exist --- bin/docker-entrypoint | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/docker-entrypoint b/bin/docker-entrypoint index 0d45eb5482..1bed803efd 100755 --- a/bin/docker-entrypoint +++ b/bin/docker-entrypoint @@ -2,6 +2,7 @@ set -e worker() { + /app/manage.py db upgrade WORKERS_COUNT=${WORKERS_COUNT:-2} QUEUES=${QUEUES:-queries,scheduled_queries,celery} @@ -10,6 +11,7 @@ worker() { } scheduler() { + /app/manage.py db upgrade WORKERS_COUNT=${WORKERS_COUNT:-1} QUEUES=${QUEUES:-celery} @@ -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 }