django-docker-s3
django-docker-s3 copied to clipboard
Nginx Miss Configuration - Still serving staticfiles from app not s3
Hi,
I love testdrivenio and I've been using your tutorials for a while and I think there is a mistake with this tutorial as Nginx is pointing to staticfiles stored in the docker and not s3. I've been doing tests and it is true we push collected staticfiles to s3 but they are still served from django docker.
Shouldn't we remove this lines from nginx/nginx.conf?
location /staticfiles/ {
alias /usr/src/app/staticfiles/;
}
location /mediafiles/ {
alias /usr/src/app/mediafiles/;
}
Thanks!
PD: Thank you so much for all your work its gold for my startup :)