django-planet
Oct. 23, 2019

Deploying WhiteNoise - Building SaaS #35

in blog Matt Layman
original entry Deploying WhiteNoise - Building SaaS #35

In this episode, we updated Continuous Integration, Nginx, and the Ansible deployment tasks to use WhiteNoise. With all the changes in place, we tested things out to verify that WhiteNoise served up the CSS, JS, and image files. We started with Circle CI. First, I fixed the JS assets cache because the cache key never changed and Circle did not save fresh assets each build. After completing the assets cache, I created a new cache that stored all the static files after running collectstatic.