Skip to content

Commit

Permalink
Copy compressor cache to static for WhiteNoise
Browse files Browse the repository at this point in the history
We need to run collect static to ensure the cached data is in the WhiteNoise manifest.
  • Loading branch information
andrlik authored Aug 28, 2018
1 parent 25b5d2f commit d66be0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ echo "-----> Exporting application config values"
export_env_dir $3
echo "-----> Running django-compressor"
python manage.py compress --force
echo "-----> Running collect static again..."
cp -R staticfiles/CACHE looking_for_group/static/
python manage.py collectstatic --noinput

0 comments on commit d66be0f

Please sign in to comment.