无法在Rails应用程序中清理资产

时间:2022-05-04 02:50:48

Ok, this is driving me nuts!

好的,这让我疯了!

I just cloned a rails project that used to have twitter bootstrap styling on it, but it was deleted. When I run the project, I still get the bootstrap styling! I've tried running rake assets:cleanand get the following output:

我刚刚克隆了一个曾经有过twitter引导样式的rails项目,但它被删除了。当我运行项目时,我仍然可以获得引导样式!我尝试过运行rake资产:clean并获得以下输出:

/Users/ericavirtue/.rvm/rubies/ruby-1.9.2-p290/bin/ruby /Users/ericavirtue/.rvm/gems/ruby-1.9.2-p290@global/bin/rake assets:clean:all RAILS_ENV=production RAILS_GROUPS=assets
rm -rf /Users/ericavirtue/Sites/rubyblog/public/assets

And my project still has the bootstrap styling on it!

我的项目仍然有引导样式!

I've removed the bootstrap files from the stylesheets and javascript folders, and removed the reference to bootstrap in application.css.

我已从样式表和javascript文件夹中删除了引导程序文件,并删除了application.css中对引导程序的引用。

I've even tried RAILS_ENV=development rake rails_group=assets assets:clean

我甚至尝试过RAILS_ENV =开发rake rails_group =资产资产:干净

Any ideas? The code can be found here:

有任何想法吗?代码可以在这里找到:

github.com/arelenglish/rubyblog

github.com/arelenglish/rubyblog

2 个解决方案

#1


1  

Double check your public folder to make sure that you don't have any precompiled assets in there, and hold shift while clicking refresh to make sure your browser's cache is clear.

仔细检查您的公用文件夹以确保您没有任何预编译资产,并在单击刷新时按住shift以确保浏览器的缓存清除。

#2


0  

Use assets:clobber to really remove assets. assets:clean keeps 2 backups in case older content triggers the old assets being loaded.

使用资产:clobber来真正删除资产。 assets:clean保留2个备份,以防旧内容触发加载的旧资产。

#1


1  

Double check your public folder to make sure that you don't have any precompiled assets in there, and hold shift while clicking refresh to make sure your browser's cache is clear.

仔细检查您的公用文件夹以确保您没有任何预编译资产,并在单击刷新时按住shift以确保浏览器的缓存清除。

#2


0  

Use assets:clobber to really remove assets. assets:clean keeps 2 backups in case older content triggers the old assets being loaded.

使用资产:clobber来真正删除资产。 assets:clean保留2个备份,以防旧内容触发加载的旧资产。