• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Himai Minh

Making "bundle install" faster by caching locally

Posts: 3036
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 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?
    Bookmark Topic Watch Topic
  • New Topic