halfacreyum
halfacreyum

Reputation: 297

Heroku will not update assets

My Heroku app will not update assets when I push to Heroku, I have exhausted all posts regarding this issue on stack overflow, but nothing works. rake assets:precompile doesn't work either, I have tried deleting the public/assets folder, checked all the config settings in production.rb, and nothing will work. Funny thing is is that it has worked fine for weeks, and for some reason something I did today caused this problem. I know this is vague, I was hoping someone might have some info or suggestions. Thanks, any help would be really appreciated.

Upvotes: 0

Views: 745

Answers (2)

Eliot
Eliot

Reputation: 137

You should clean your assets folder in /public.

If Heroku detect the 'public/assets' folder he consider you have precompiled your assets locally.

Upvotes: 1

Robert Nubel
Robert Nubel

Reputation: 7522

It's possible that, perhaps due to reverting a change or otherwise confusing the asset pipeline, your newer assets are considered "older" and are not being used in asset compilation. If so, purging the Heroku build cache via the heroku-repo plugin's repo:purge_cache command may help you.

Upvotes: 1

Related Questions