Closed davesque closed 8 years ago
This buildpack doesn't run collectstatic automatically for you.
I tried running collectstatic and it made no difference.
How did you run it?
heroku run python manage.py collectstatic
You need to add that as a part of your Procfile, unfortunately.
web: python manage.py collectstatic; mywebserver
Cool. That worked.
I actually had to use web: python manage.py collectstatic --noinput; webservercmd
.
Are there any special considerations when using this approach or is it pretty standard to put collectstatic in the Procfile
?
No special considerations. It's pretty standard, as your web process requires that collectstatic be run before starting up. Ideally, this would happen in the buildpack (like it is in the Python buildpack), but this buildpack is far less fancy.
Cool, thx!
I recently switched to using the conda buildpack and now my app no longer serves static files correctly (404 responses for static assets). I'm using whitenoise to serve static files. Any ideas about how I could troubleshoot this?