How can I reset my asset pipeline in Rails?

℡╲_俬逩灬. 提交于 2019-12-13 00:29:24

问题


Such a strange problem, but I deployed to production, and it won't update with my new CSS changes because of a caching issue.

I tried this :

bundle exec rake assets:precompile

But that returns :

rake aborted!
Don't know how to build task 'assets:precompile'

Ah, so I must be missing the sprockets in my application.rb perhaps. I tried everything on this link : How to build task 'assets:precompile' . And every solution caused a load error for not finding the items that it pointed out.

What should I do?

Rails. 3.0.5


回答1:


try clearing your browser cache.

this blog post was informative for me: http://blog.55minutes.com/2012/02/untangling-the-rails-asset-pipeline-part-1-caches-and-compass/



来源:https://stackoverflow.com/questions/9749008/how-can-i-reset-my-asset-pipeline-in-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!