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

selenium-screenshot-testing
Kevin Chung 2018-06-17 21:51:34 -04:00 committed by GitHub
parent 38416ce5c6
commit 36dadcf1d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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