title: how to use gunicorn with swagger_server on flask
body: <p>I'm trying to start the swagger server using gunicorn on ec2 instance by using the following code:</p>
  
  <p>I tried :</p>
  
  <pre><code>gunicorn -w 4 -b 0.0.0.0:8080 -p pidfile -D swagger_server:app
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>gunicorn -w 4 -b 0.0.0.0:8080 -p pidfile -D "python3 -m swagger_server":app
  </code></pre>
  
  <p>and even this :</p>
  
  <pre><code>gunicorn -w 4 -b 0.0.0.0:8080 -p pidfile -D __main__:app
  </code></pre>
  
  <p>How can I get it to work?</p>
  
  <p>RAW python code which works : <code>python3 -m swagger_server</code></p>