title: What is the correct way to leave gunicorn running?
body: <p>I want to make a Flask+Nginx+Gunicorn deployment. I have Nginx setup and running and I run gunicorn as described in the docs:</p>
  
  <pre><code>gunicorn app:app
  </code></pre>
  
  <p>But when I logout of the server the gunicorn process exits? What is the correct way to make sure it stay running for Nginx to connect to, and restarts if it crashes?</p>