heroku/heroku-buildpack-ruby — pull request #16 by stevenh512 (2012-05-16 05:45:48+00:00)
Title: Reduce slug size

* Keep the gem cache (including Bundler's git cache) out of the slug.
* Keep Rubinius .rbc files out of the slug unless ruby_version_rbx? is true.

This may not be ready to merge, but it doesn't hurt to open a pull request so this can be looked at and discussed by people who know more about it than I do. :grin:

I've been using this for a little over a month now with no side-effects other than a dramatically reduced slug size. The cache seems to still exist on redeploys (as far as I can tell), it just doesn't get included in the compiled slug.

On my current Diaspora deploy (with a few extra git dependencies) I can't use the default buildpack because my slug size would be 102.2MB. With this patch it's 87.0MB.