$ mkvirtualenv flask-app
$ pip install -r requirements.txt
$ gunicorn -b 0.0.0.0:5000 main:app --workers 2
$ tail -f app.log
$ python worker.py
$ tail -f worker.log
Miguel Grinberg's blog https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xv-a-better-application-structure