http://chase-seibert.github.io/blog/2014/03/30/uwsgi-python-reload.html
A blog post that details some of this. Bert > On Jan 14, 2016, at 16:55, Srikanth Bemineni <bemineni.srika...@gmail.com> > wrote: > > > Hi, > > I am currently using pserve for development. But this is making me do some > changes to code when I move from development to production or vice versa. In > my main app init.py I use the below imports > > from uwsgidecorators import postfork > > This is needed for initiating my cassandra connections on forking. > uwsgidecorator imports uwsgi, which will be only available when I run using > uwsgi. So when I start development from fresh checked out code. I need to > comment these lines. > > I also feel like using pserve will not allow me to test any forking issue > that may be seen during production, where I am thinking of using nginx + > uwsgi. > > Srikanth > > > On Tuesday, January 12, 2016 at 12:22:24 PM UTC-6, Jason wrote: > > On Sunday, January 10, 2016 at 7:39:49 PM UTC-5, Srikanth Bemineni wrote: > > > Hi , > > Is there way we can make uwsgi reload on src change during development. I am > looking for similar behaviour as pserve development.ini --reload > > > > This doesn't answer your question, but I would recommend using pserve and > waitress for development. Although you should keep your development > environment as similar as possible to production, the ease of not > installing/configuring uWSGI on the development machine trumps the > consistency of environment. I've found that the during development there are > very rarely changes any of the uwsgi server configuration and it's much > faster to get setup if you don't have the dependency on uWSGI. > > -- Jason > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To post to this group, send email to pylons-discuss@googlegroups.com. > Visit this group at https://groups.google.com/group/pylons-discuss. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. Visit this group at https://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME cryptographic signature