wycats
38p37 comments posted · 0 followers · following 0
15 years ago @ Union Station - Deployment Best Practi... · 0 replies · +3 points
> I never had any problems with gem dependencies in the past. It wasn't like
> unpacking gems into an app and using a few select gems on the server is
> actually difficult.
There are definitely some people (like you) with that experience. There are also a lot of people with the opposite experience. Unfortunately, dependency issues are silent killers--they pop up out of nowhere and kill you for days while you try to understand what gem that happened to exist on production took down your app. This is no exaggeration; Ruby forums are littered with the corpses of people who thought everything was fine until an errant gem install rack on a developer machine or on production inadvertently took down their app.
> Furthermore: now with Bundler my deployments *are* actually more
> difficult all of a sudden. Even though I have the rspec gem in the development
> "group" (why is this not named environment?)
People use groups for things other than environments. For instance, some people put all of their cucumber dependencies in a :cucumber group, but don't necessarily have a cucumber environment. In Rails, we made group == environment by default.
> when I deploy on production Bundler still wants to install it. Why oh why?
> No documentation will tell me.
If you do nothing but run `bundle install` on production, bundler will install all groups. The simplest way to deploy bundler, as documented at http://gembundler.com/deploying.html (and also on the front page of gembundler.com) is to put require "bundler/capistrano" in your capistrano file. This task defaults to skipping the development and test groups, and allows you to configure it to skip other groups if you wish. It also uses `bundle install --deployment`, which installs the gems to a local path in your application, dealing with a number of common issues involving passenger and unicorn.
> You seem to be using some magic to get this to work, but alas no actual
> light on this subject. Is there a black craft to this?
Engine Yard uses bundle install --deployment --without development test, which is the same thing that the bundler/capistrano task does for you.
> If you ask me, Bundler is like using a state of the art NASA kevlar sheet
> instead of a band-aid for a minor cut.
16 years ago @ Union Station - Rails and Merb Merge: ... · 1 reply · +1 points
16 years ago @ Union Station - Rails 3 Beta is Out --... · 0 replies · +1 points
16 years ago @ Union Station - Rails and Merb Merge: ... · 1 reply · +3 points
16 years ago @ Union Station - Rails and Merb Merge: ... · 0 replies · +1 points
The benchmarks are located at http://github.com/wycats/rails-simple-benches and can be run by checking the repo out into the actionpack dir in Rails. It includes the full cost of a Rack request, without the network overhead (important, but not a cost that Rails is responsible for).
16 years ago @ Union Station - Rails and Merb Merge: ... · 0 replies · +1 points
16 years ago @ Union Station - Rails and Merb Merge: ... · 0 replies · +1 points
16 years ago @ Union Station - Rails and Merb Merge: ... · 0 replies · +2 points
16 years ago @ Union Station - Rails and Merb Merge: ... · 0 replies · +2 points
16 years ago @ Union Station - Rails and Merb Merge: ... · 0 replies · +2 points