small compress fixes to help serve scss on staging server and avoid persistent 500 errors
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -15,6 +15,8 @@ RUN python manage.py collectstatic --noinput
|
||||
|
||||
ENV DJANGO_DEBUG_FALSE=1
|
||||
|
||||
RUN python manage.py compress
|
||||
|
||||
RUN adduser --uid 1234 nonroot
|
||||
|
||||
USER nonroot
|
||||
|
||||
@@ -37,6 +37,7 @@ if 'DJANGO_DEBUG_FALSE' in os.environ:
|
||||
SECURE_HSTS_SECONDS = 60
|
||||
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
|
||||
SECURE_HSTS_PRELOAD = True
|
||||
COMPRESS_OFFLINE = True
|
||||
else:
|
||||
DEBUG = True
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
|
||||
Reference in New Issue
Block a user