title: How to run Daphne and Gunicorn At The Same Time?
body: <p>I'm using <code>django-channels</code> therefore I need to use <code>daphne</code> but for the static files and other things I want to use <code>gunicorn</code>. I can start <code>daphne</code> alongside <code>gunicorn</code> but I can not start both of them at the same time.</p>
  
  <p>My question is should I start both of them at the same time or is there any better option?
  If should I how can I do that?</p>
  
  <p>Here is my runing server command:</p>
  
  <pre><code>gunicorn app.wsgi:application --bind 0.0.0.0:8000 --reload &amp;&amp; daphne -b 0.0.0.0 -p 8089 app.asgi:application
  </code></pre>
  
  <p>PS:
  I splited <code>location</code> of <code>/</code> and <code>/ws/</code> for <code>gunicorn</code> and <code>daphne</code> in <code>nginx.conf</code>.</p>