ndbroadbent / turbo-sprockets-rails3

Speeds up your Rails 3 assets:precompile by only recompiling changed files, and only compiling once to generate all assets
MIT License
975 stars 78 forks source link

rake task 'assets:clean_expired' not found on staging environment #58

Closed johnkchow closed 10 years ago

johnkchow commented 11 years ago

So on our staging box, when I execute the rake -T command, it doesn't list assets:clean_expired as an available task. However, on my local dev environment I see it.

I've included the turbo-sprockets-rails gem into the :assets group within my Gemfile.

I've tried running RAILS_GROUPS=assets bundle exec rake -T but that doesn't list it.

Not sure if I'm missing something or if I'm a total idiot. Any help would be appreciated!

BTW, love the work with the gem :)

alexfalkowski commented 10 years ago

Is this gone? or it just does it automatically now?

ndbroadbent commented 10 years ago

Hi there, I'm not sure why it's missing. I can see the task on our staging server by running: RAILS_GROUPS=assets bundle exec rake -T

I've also got the gem in the :assets group in our Gemfile. If you can run assets:precompile on your server, then I think you should be able to also run assets:clean_expired

ndbroadbent commented 10 years ago

Ahh, I might have actually re-added the task in the last 7 months. Sorry for the super-delayed response!

alexfalkowski commented 10 years ago

when I do bundle exec rake assets:clean_expired it complains as not being there. This was today.

ndbroadbent commented 10 years ago

Please try running: RAILS_GROUPS=assets bundle exec rake assets:clean_expired

On Tue, Sep 24, 2013 at 12:25 PM, Alex Falkowski notifications@github.comwrote:

when I do bundle exec rake assets:clean_expired it complains as not being there. This was today.

— Reply to this email directly or view it on GitHubhttps://github.com/ndbroadbent/turbo-sprockets-rails3/issues/58#issuecomment-25034836 .

alexfalkowski commented 10 years ago

Ahh thanks :)