docker-entrypoint.sh 169 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/sh
set -e

if [ "x$DJANGO_MANAGEPY_MIGRATE" = 'xon' ]; then
    echo "Apply database migrations"
    sleep 1
    python manage.py migrate --noinput
fi

10
exec "$@"