Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Allow deactivating django compressor

Roland Geiderfcbe25169171
diff --git a/extras/docker/production/settings.py b/extras/docker/production/settings.py
index 6f005e2ea..3490c3930 100644
--- a/extras/docker/production/settings.py
+++ b/extras/docker/production/settings.py
@@ -137,6 +137,7 @@ if os.environ.get("DJANGO_CACHE_BACKEND"):
# Folder for compressed CSS and JS files
COMPRESS_ROOT = STATIC_ROOT
+COMPRESS_ENABLED = env.bool('COMPRESS_ENABLED', not DEBUG)
# The site's domain as used by the email verification workflow
EMAIL_PAGE_DOMAIN = SITE_URL