I have a Flask app that I start with:
nohup python app.py &
so that it remains up when I close the terminal. But, if the server reboots, or there is an exception that breaks the app, it remains down.
Is there a way I can run the app so that it is always up, even after a reboot or an exception?