[Flask] Avoiding crash when compilation error occurs during development

Barak Bloch barak.bloch at gmail.com
Mon Apr 18 10:02:35 EDT 2016


I think the way to go is  to write a shell script  to run the python server
and when it fails will run it again.



On 15 April 2016 at 09:46, Gabor Szabo <gabor at szabgab.com> wrote:

>
> Hi,
>
> this has been bothering me for a while now, and have not found a solution
> yet.
>
> During development I launch the application using
>
> app.run(debug=True, host='0.0.0.0')
>
> it works nicely and reloads the application when I make some changes,
> but if I make a syntax error, and I make quite a lot of them, then the
> server crashes
> and then I have to switch to the console to start it again.
>
> Is there a way to avoid this?
> Well, besides not making syntax errors any more.
>
> Gabor
>
>
> _______________________________________________
> 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/20160418/934d69e1/attachment.html>


More information about the Flask mailing list