0

I have run into this problem 2x where heroku just stops running collectstatic. The dry run works fine. Even running the command "appears" to copy the files over but does not actually do anything. The only solution I have come up with is to manually collect the static files locally and check them into the branch I am pushing to heroku.

Does anyone have any suggestions?

Omni
  • 313
  • 1
  • 3
  • 9

1 Answers1

0

Try to install gunicorn, put it in your requirements and use following Procfile:

web: python manage.py collectstatic --dry-run --noinput; python manage.py run_gunicorn -b 0.0.0.0:$PORT

It will automatically collect the static assets and don't forget to set-up STATIC_ROOT & STATIC_URL.

panjianom
  • 236
  • 4
  • 18
  • I already use gunicorn and the addition of the collectstatic command doesn't seem to actually collect the assets to the appropriate directory. – Omni Oct 23 '13 at 18:15