summaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
blob: aed4a9fe15783637c520c7a134dbcf91b8e6d10f (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 --settings=conf.settings.prod migrate

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

# Collect static files
python manage.py collectstatic --settings=conf.settings.prod --noinput

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