Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rollback rake assets:precompile

I operate Rails 3.2.13 and I ran a

rake assets:precompile

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.

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 ?

like image 457
cedric Avatar asked Jun 19 '26 04:06

cedric


1 Answers

remove public/assets

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

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

rm -fr public/assets.
like image 157
lsaffie Avatar answered Jun 21 '26 01:06

lsaffie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!