Run python flask on EC2 in the background Run python flask on EC2 in the background flask flask

Run python flask on EC2 in the background


There are several options:

  1. nohup python app.py &
  2. use screen
  3. run supervisord(link) on system startup and control all through it (pythonic way :))

nohup means: do not terminate this process even when the stty is cut off.

& at the end means: run this command as a background task.