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
974 stars 76 forks source link

What is difference between using the buildpack and just using the gem with asset_sync? #63

Closed dfuentes77 closed 11 years ago

dfuentes77 commented 11 years ago

Do you need to do both?

dfuentes77 commented 11 years ago

I guess the questions is, do you need the buildpack if you are using asset_sync gem on heroku?

PikachuEXE commented 11 years ago

I guess asset sync just upload changed assets But it does not prevent recompilation?

ndbroadbent commented 11 years ago

Hi there,

You do need the buildpack if you want to use turbo-sprockets-rails3 on heroku. Otherwise the gem will do nothing to speed up your asset compilation. The buildpack keeps your assets in a shared directory, so that subsequent deploys don't need to recompile assets. Otherwise, the default behaviour on Heroku is to start with an empty public/assets directory.