Uncompile Development Asset Pipeline

Kyle C picture Kyle C · Dec 19, 2011 · Viewed 18.7k times · Source

I was compiling my asset pipeline for my production environment and it did for all my environments. How can I uncompile my asset pipeline for my development environment?

I have checked my config/development environment and cannot find a fix.

Thanks in advance for any help...

Answer

Phil Bottomley picture Phil Bottomley · Dec 20, 2011

To remove precompiled assets use:

rake assets:clean

What this basically does is remove the public/assets directory. You may need to include the RAILS_ENV variable if you need to run it for a certain environment.