Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add whitenoise for static files #1842

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add whitenoise for static files #1842

wants to merge 1 commit into from

Conversation

alastair
Copy link
Member

@alastair alastair commented Feb 12, 2025

Finally get whitenoise in place for static files!

This will significantly improve our deployment process with docker, we'll now serve static files directly from django with all of the necessary caching headers, so we don't need any steps to move static files to nginx during deployment.

Deployment steps:
Need to remove the nginx location blocks for /static, we no longer need to copy files to appserver during deployment, and nginx doesn't need to copy files at startup.

It's possible that this will cause more load on django, and we may need to increase the number of web workers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant