File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Making "bundle install" faster by caching locally

Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2850
    
  11

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 rubygems.org. 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: http://aspose.com/file-tools
 
subject: Making "bundle install" faster by caching locally