回滚 rake 资产:预编译 [英] Rollback rake assets:precompile

查看:29
本文介绍了回滚 rake 资产:预编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行 Rails 3.2.13 并运行了一个

I operate Rails 3.2.13 and I ran a

rake assets:precompile

为了激活一些否则不会触发的 CoffeeScript,它完全破坏了我的页面布局,直到那时还好.我的应用程序的菜单现在是垂直的而不是水平的,其余页面随后不可见.

In order to activate some CoffeeScript that wouldn't fire otherwise, and it completely ruined my pages layout, which was fine until then. The menu of my application is now vertical instead of horizontal and the rest of the pages is subsequently invisible.

我使用 Bootstrap 并且我怀疑它已经更新,出于某种原因,但是如果我只知道它为什么改变以及无论如何改变它的话,改变它的工作量太大了......

I use Bootstrap and I suspect this has been updated, for some reason, but it's too much work to change it, if I only knew why it has changed and what has changed anyway...

我想回到我以前的布局状态.

I would like to go back to the former state of my layout.

有什么办法可以回滚吗?

Is there any way to roll back ?

推荐答案

移除公共/资产

说明:预编译任务编译您的资产,通常在 app/assets 中,并将它们放在您的公共文件夹/assets 文件夹中.

explanation: the precompile task compiles your assets, usually in app/assets, and places them in your public folder/assets folder.

如果想回到预编译前的状态,去掉public/assets

If you want to go back to the state prior to the precompile, just remove public/assets

rm -fr public/assets.

这篇关于回滚 rake 资产:预编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆