如何在Rails中重置资产管道? [英] How can I reset my asset pipeline in Rails?
本文介绍了如何在Rails中重置资产管道?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是一个奇怪的问题,但是我部署到了生产环境,由于缓存问题,它不会随着我的新CSS更改而更新.
Such a strange problem, but I deployed to production, and it won't update with my new CSS changes because of a caching issue.
我尝试过这个:
bundle exec rake assets:precompile
但是返回:
rake aborted!
Don't know how to build task 'assets:precompile'
啊,所以我可能必须在我的application.rb中缺少链轮.我在此链接上尝试了所有操作:如何构建任务"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.
我该怎么办?
路轨. 3.0.5
推荐答案
尝试清除浏览器缓存.
this blog post was informative for me: http://blog.55minutes.com/2012/02/untangling-the-rails-asset-pipeline-part-1-caches-and-compass/
这篇关于如何在Rails中重置资产管道?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文