Re: nginx server not reflecting changes
If I understood you correctly you are saying that when you make changes on settings.py you can see them when running the project from manage.py runserver but not when on production using nginx+gunicorn
When making changes you need to reload the project, runserver autoreloads this is why you can see the changes
you will need to reload gunicorn but not nginx, I'm more familiar with uwsgi but I believe gunicorn have similar options
you can manually reload or set it to autoreload, either when it detects a change in the project folder (wouldn't recommend because of possible log files) or on file touch which I personally use.
On Sat, Jan 11, 2014 at 8:39 PM, Sandeep kaur <mkaurkhalsa@gmail.com> wrote:
Hello,--I have deployed my Django site with nginx server, gunicorn and supervisor and it is working fine. But recently I made some changes in settings file of the project and that changes are not visible on the nginx server, however same changes reflect on runserver.What can be the possible reason for this?
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF66xG3JpZgwv%3DQ7BDyB8cafOJmRTZRajp7cerLR5JPsfHAmrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFWa6tKrHkBEgyttkNMyNA7hyo4T7dXEATCCSPt57OvSEpNmNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home