Initialize database in docker-entrypoint.sh to reduce likelihood of missing tables (#642)

This commit is contained in:
Kevin Chung
2018-06-17 21:51:34 -04:00
committed by GitHub
parent 38416ce5c6
commit 36dadcf1d5

View File

@@ -25,6 +25,9 @@ if [ -n "$DATABASE_URL" ]
sleep 1;
fi
# Initialize database
python manage.py db upgrade
if [ -z "$WORKERS" ]; then
WORKERS=1
fi