title: Starting flask server in background
body: <p>I have a flask application which I am currently starting up in the following way:</p>
  
  <pre><code>#phantom.py
  __author__ = 'uruddarraju'
  from phantom.api.v1 import app
  app.run(host='0.0.0.0', port=8080, debug=True)
  </code></pre>
  
  <p>and when I run this script, it executes successfully by printing:</p>
  
  <pre><code>loading config from /home/uruddarraju/virtualenvs/PHANTOMNEW/Phantom/etc/phantom/phantom.ini
  * Running on http://0.0.0.0:8080/
  </code></pre>
  
  <p>But it never returns and if I do a CTRL-C the server stops. I am trying to deploy this to production and want to run this startup on the background, where the process stays up as long as the server is up.</p>
  
  <p>What is the best way to do this?</p>