[Flask] Restarting Flask app?

David Lord davidism at gmail.com
Tue May 10 15:05:39 EDT 2016


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.

On Tue, May 10, 2016 at 12:02 PM, Alex Hall <ahall at autodist.com> wrote:

> Hi all,
> 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?
>
> --
> Alex Hall
> Automatic Distributors, IT department
> ahall at autodist.com
>
> _______________________________________________
> Flask mailing list
> Flask at python.org
> https://mail.python.org/mailman/listinfo/flask
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20160510/9cd77a98/attachment.html>


More information about the Flask mailing list