<div dir="ltr">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. <br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 April 2016 at 09:46, Gabor Szabo <span dir="ltr"><<a href="mailto:gabor@szabgab.com" target="_blank">gabor@szabgab.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><div><div><div><br>Hi,<br><br>this has been bothering me for a while now, and have not found a solution yet.<br><br>During development I launch the application using<br><br>app.run(debug=True, host='0.0.0.0')<br><br></div>it works nicely and reloads the application when I make some changes,<br></div>but if I make a syntax error, and I make quite a lot of them, then the server crashes<br></div><div>and then I have to switch to the console to start it again.<br></div><div><br></div>Is there a way to avoid this?<br>Well, besides not making syntax errors any more.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div>Gabor<br><br></font></span></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></div>