summaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
blob: 59a45b77847694d904c2dffb6c99ddfac7a207a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
cd /app

# Run migrations
python manage.py migrate

# Try to create a superuser, skip if email is already taken
echo "Attempting to create superuser..."
#python manage.py createsuperuser --noinput || true

# Collect static files
python manage.py collectstatic --noinput

# Start Gunicorn
exec gunicorn --bind ':8080' --workers 3 ded.wsgi:application