Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Making "bundle install" faster by caching locally  RSS feed

Greg Charles
Posts: 3014
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!