<div dir="ltr"><div><div>Great, thanks. So UWSGI is what I'd restart. There must be a way to script all this, so I don't have to keep doing<br></div>sudo uwsgi --ini-paste /etc/uwsgi/apps-enabled/myApp.ini<br><br></div>Great point about not auto-restarting on a production site. For testing it's super convenient, but you're right, it would be horrible on something real, especially as I'm in the habbit of hitting ctrl-s every few minutes no matter whether my code is valid at the moment or not.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 10, 2016 at 3:05 PM, David Lord <span dir="ltr"><<a href="mailto:davidism@gmail.com" target="_blank">davidism@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You restart the process running your app, which is uWSGI.  `master` does not mean that, it means that you're starting a process that will manage other processes.  Although there are solutions for restarting when files change, you should always restart manually in production.<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 10, 2016 at 12:02 PM, Alex Hall <span dir="ltr"><<a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,<br></div>It just struck me that restarting a Flask app after modifying the Python code isn't obvious. Do I restart UWSGI, Nginx, or both? In UWSGI, I specified "master=true", which I read lets you apply changes without restarting. Therefore, do I need to restart anything, or simply save my changes to the code and watch it happen automatically?<span class="HOEnZb"><font color="#888888"><span><font color="#888888"><br clear="all"><div><div><br>-- <br><div><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div></div></font></span></font></span></div><span class="HOEnZb"><font color="#888888">
<br>_______________________________________________<br>
Flask mailing list<br>
<a href="mailto:Flask@python.org" target="_blank">Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
<br></font></span></blockquote></div><br></div></div>
<br>_______________________________________________<br>
Flask mailing list<br>
<a href="mailto:Flask@python.org">Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div>