summaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
blob: 2b17530c5aff31d193cdacb71b4d010b6823f28c (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 ':8000' --workers 3 ded.wsgi:application