0

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?

Erel Segal-Halevi
  • 33,955
  • 36
  • 114
  • 183
  • Maybe put it in a docker container. Or if you are using a Linux System with systemd you may need to write a service file for it – Kevin Jan 14 '23 at 20:53

0 Answers0