I want to make a Flask+Nginx+Gunicorn deployment. I have Nginx setup and running and I run gunicorn as described in the docs:
gunicorn app:app
Pay attention to Sean.
However you can run it on the fly like this:
nohup gunicorn -c config.py /dev/null 2>&1
and it will no longer be dependent on the terminal connection. You could replace >/dev/null
with something like >somelogfile
if you want to save any output.
But for production use it is best to get it integrated into whatever tool you use for managing processes.