[Flask] Avoiding crash when compilation error occurs during development
Andrea D'Amore
and.damore at gmail.com
Tue Apr 19 02:52:38 EDT 2016
On 18 April 2016 at 16:02, Barak Bloch <barak.bloch at gmail.com> wrote:
> 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.
I wouldn't suggest a re-run-on-fail, simply respawning a process that
exited with error because a syntax error was introduced will just
result in the same fail over and over.
Such a spawner would better be observing the fs for changes (fsnotify
or so, depending on the system) and then retry.
--
Andrea
More information about the Flask
mailing list