Skip to content

Commit

Permalink
Delete compression
Browse files Browse the repository at this point in the history
  • Loading branch information
U039b committed Sep 21, 2024
1 parent b505ca1 commit deaa0b2
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions compose/production/django/start
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit deaa0b2

Please sign in to comment.