mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
[manual] Serve static files from the same location across prod deploys
This only affects DEPLOYED installations. This does not take care of removing old versions of static files from that directory. The problem is that staticfiles is clever and doesn't copy files that are already there, so we can't depend on mtime for detecting which files we no longer need. Hopefully that won't be too much of a problem for now. (imported from commit 4341460dd5bc6544086fd445014ebdac58192910)
This commit is contained in:
@@ -9,7 +9,7 @@ error_page 502 503 504 /static/html/5xx.html;
|
||||
|
||||
# Serve static files directly
|
||||
location /static/ {
|
||||
alias /home/humbug/humbug-deployments/current/prod-static/serve/;
|
||||
alias /home/humbug/prod-static/;
|
||||
error_page 404 /static/html/404.html;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user