Why won't my css changes show without me restarting WEBrick?

空扰寡人 提交于 2019-12-07 13:00:55

问题


I am doing some simple css edits on a rails 3.2 project and my changes will not show up unless I restart webrick.

I came across something saying that it may be using the public/assets directory, but I don't think this is the case because my changes show when the server is restarted. Not sure why this is happening.

Does anyone know if there is some sort of configuration that I need to fix to solve this problem?


回答1:


bundle exec rake assets:clean

run this command




回答2:


I added this to my development.rb file and now it works.

config.assets.digest = false


来源:https://stackoverflow.com/questions/14559615/why-wont-my-css-changes-show-without-me-restarting-webrick

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