diff --git a/compose/production/django/start b/compose/production/django/start index 0efe9c4..a351240 100644 --- a/compose/production/django/start +++ b/compose/production/django/start @@ -7,25 +7,5 @@ set -o nounset python /app/manage.py collectstatic --noinput -compress_enabled() { -python << END -import sys - -from environ import Env - -env = Env(COMPRESS_ENABLED=(bool, True)) -if env('COMPRESS_ENABLED'): - sys.exit(0) -else: - sys.exit(1) - -END -} - -if compress_enabled; then - # NOTE this command will fail if django-compressor is disabled - python /app/manage.py compress -fi - python manage.py migrate --skip-checks exec /usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:5000 --chdir=/app -k uvicorn.workers.UvicornWorker