Meaningless Drivel is fun!
The moose likes Ruby and the fly likes Making Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Making "bundle install" faster by caching locally" Watch "Making "bundle install" faster by caching locally" New topic

Making "bundle install" faster by caching locally

Greg Charles

Joined: Oct 01, 2001
Posts: 2968

I'm new to Rails, but I'm trying to speed up the installation of a Rails app, which we install to multiple servers. The problem is the libv8 gem, which seems to be a JavaScript implementation. When I do a "bundle install" or even a "gem install libv8", it says it has to build native extensions, and it may take awhile ... and it really does. It can take anywhere from 15 to 25 minutes, which is about 80% to 90% of the total install time. I've tried setting up a local gem server with the "gem server" command, and as far as I can tell, the bundle install then pulls the gem from the local server, but it still seems to build native extensions, or at least, it's not any faster processing the libv8 gem than when pulling from I also tried just copying the libv8's gem directory from the local gemset to the gemset for the new server, but the bundle install just wiped out that directory and then rebuilt it, again taking about 15 to 25 minutes.

There must be a way I can just build native extensions once and save the results, right?
I agree. Here's the link:
subject: Making "bundle install" faster by caching locally
It's not a secret anymore!