--
You received this message because you are subscribed to the Google Groups "ruby-bundler" group.
To post to this group, send email to ruby-b...@googlegroups.com.
To unsubscribe from this group, send email to ruby-bundler...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruby-bundler?hl=en.
> We have fixed and applied a patch written by Kyle Shank (http://github.com/carlhuda/bundler/commit/43fe70ef22a6443865207936d0b4277169e19d4a
> ) which significantly improves memory usage (by 2-3x). It will be in
> the next release :)
Great news, thanks!
>
> We will also be pursuing other avenues (including working with
> Gemcutter and further profiling bundler itself).
>
> You can mitigate your problems even further by:
> • running `bundle cache` in development. this will put the .gem
> files you need into your vendor/cache directly, and remove the need
> to hit rubygems.org on deploy
this involves checking in vendor/cache into source control as well,
yes? how does this handle compiled gems?
> • use the `--production` flag in deployment. among other things,
> this will ensure that we do not hit rubygems.org if all the gems you
> need are stored in vendor/cache
regarding this, since I'm using capistrano I would need to symlink
vendor/cache into shared/ is well, yes?
thanks for the help
Yes. Compiled gems are just that, compiled when they are installed. The .gem files stored in vendor/cache are not compiled yet.
> regarding this, since I'm using capistrano I would need to symlink vendor/cache into shared/ is well, yes?
Well, if vendor/cache is in your source control, I'm not sure why you would need to symlink it into shared.
— Andre
>
> On Aug 2, 2010, at 3:32 PM, Mateo Murphy wrote:
>> this involves checking in vendor/cache into source control as well,
>> yes? how does this handle compiled gems?
>
> Yes. Compiled gems are just that, compiled when they are installed.
> The .gem files stored in vendor/cache are not compiled yet.
right, that makes sense
>
>> regarding this, since I'm using capistrano I would need to symlink
>> vendor/cache into shared/ is well, yes?
>
> Well, if vendor/cache is in your source control, I'm not sure why
> you would need to symlink it into shared.
Sorry, I was assuming that --production would also cache gems, rather
than having vendor/cache checked into source control (which I'd rather
not do, if possible).
Seems to me that having a shared cache would be useful as a production
stratregy? It could be done manually by running "bundle install --
production" followed by "bundle cache"
Seems to me that having a shared cache would be useful as a production stratregy? It could be done manually by running "bundle install --production" followed by "bundle cache"
> You wouldn't need to do that. Instead, you could simply symlink
> vendor/bundle to a shared location, and then run bundle install.
> This will share the installation location across deploys for the
> same application. If you don't make any changes to your Gemfile,
> running bundle install --production on every deploy will be a noop,
> so you should not need to store the .gem files as well.
Of course.. I guess I hadn't thought out my question properly.
Thanks for the help