#!/bin/sh cd /app # Run migrations python manage.py migrate --settings=conf.settings.prod # 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