Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add django-compress set to startup

Scott Peshak5b85130162d8
diff --git a/extras/docker/apache/entrypoint.sh b/extras/docker/apache/entrypoint.sh
index 537d08ff7..8ae4f7d00 100755
--- a/extras/docker/apache/entrypoint.sh
+++ b/extras/docker/apache/entrypoint.sh
@@ -2,6 +2,7 @@
if [ "${USE_S3}" = "TRUE" ]; then
python manage.py collectstatic --no-input
+ python manage.py compress
fi
/usr/sbin/apache2ctl -D FOREGROUND
diff --git a/wger/settings_global.py b/wger/settings_global.py
index 30addc744..1fb4c61a4 100644
--- a/wger/settings_global.py
+++ b/wger/settings_global.py
@@ -323,6 +323,7 @@ if USE_S3:
STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
COMPRESS_URL = STATIC_URL
COMPRESS_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
+ COMPRESS_OFFLINE = True
else:
STATIC_URL = '/static/'