Skip to content
Advertisement

Deploying heroku – Push failed

I need some help to solve this. I don’t have much experience with Heroku, this is my first time doing it but I need to deploy some app really quickly. I’ve tried to disable collectstatic with

heroku config:set DEBUG_COLLECTSTATIC=1 -a name_of_app

But it haven’t made any change. Can anyone help me, please ? Here are logs:

JavaScript

Advertisement

Answer

in your Heroku terminal run heroku config:set DISABLE_COLLECTSTATIC=1, to disable collect static. by default, Heroku will run collectstatic on each deployment

NB: Dissabling collectstatic is a temporary solution.

for a permanent solution, you have to configure static root in settings.py, for example

JavaScript

and after that, you have to run python manage.py collectstatic in your local to make sure everything works locally.

then you can disable collect static with

JavaScript

and you can push your code to heroku with

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement