#!/bin/sh set -e python manage.py migrate --noinput python manage.py ensure_admin python manage.py purge_ratelimits exec gunicorn config.wsgi:application \ --bind 0.0.0.0:8000 \ --workers "${GUNICORN_WORKERS:-2}" \ --threads "${GUNICORN_THREADS:-4}" \ --timeout "${GUNICORN_TIMEOUT:-120}" \ --access-logfile - # Forwarded headers are evaluated by core.middleware.ProxyMiddleware (TRUSTED_PROXIES), # not by gunicorn, so gunicorn keeps its default of trusting none of them from remote peers.