Skip to content

Commit

Permalink
Attempt to fix compressor another way
Browse files Browse the repository at this point in the history
  • Loading branch information
frankwiles committed Aug 28, 2024
1 parent 9f74e4a commit 5b2ec7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ COPY solr_conf /code/solr_conf
RUN touch /code/nuremberg/__init__.py; \
chown 1000 /code

RUN ./manage.py compress

USER 1000

WORKDIR /code
Expand Down
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ initCommands:
zipfile.ZipFile('/code/data/nuremberg_prod_dump_latest.sqlite3.zip').extractall(path='/tmp')
EOF
- name: collectstatic
command: './manage.py collectstatic --noinput && ./manage.py compress --force'
command: './manage.py collectstatic --noinput'

podSecurityContext:
fsGroup: 1000
Expand Down
1 change: 1 addition & 0 deletions web/nuremberg/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
COMPRESS_STORAGE = 'compressor.storage.OfflineManifestFileStorage'
COMPRESS_OFFLINE = True
COMPRESS_OFFLINE_MANIFEST = 'compress-manifest.json'
COMPRESS_OUTPUT_DIR = os.path.join(BASE_DIR, 'core/static/')

# whitenoise settings
# https://warehouse.python.org/project/whitenoise/
Expand Down

0 comments on commit 5b2ec7e

Please sign in to comment.