title: Collectstatic configuration error when deploying Django app with dokku
body: <p>When deploying a Django app using dokku I am getting a following error</p>
  
  <pre><code>Collectstatic configuration error. To debug, run:
  $ heroku run python ./manage.py collectstatic --noinput
  </code></pre>
  
  <p>I found no way to run <code>heroku run python ./manage.py collectstatic --noinput</code> for a dokku container, but when I am trying <code>dokku run my app python ./manage.py collectstatic --noinput</code>, the static files are successfully copied to the <code>STATIC_ROOT</code> folder and no error message given.</p>
  
  <p>I could solve the problem by placing <code>collectstatic</code> command into <code>Procfile</code>:</p>
  
  <pre><code>web: python manage.py collectstatic --noinput ; gunicorn myapp.wsgi
  </code></pre>
  
  <p>Still, I would love to know what was causing the problem and how can it be debugged. Any ideas?</p>