mirror of https://github.com/JohnHammond/CTFd.git
Initialize database in docker-entrypoint.sh to reduce likelihood of missing tables (#642)
parent
38416ce5c6
commit
36dadcf1d5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue