fdv/typo — Issue #56: Gemfile in deployment environments
Author: seankibler
Created: 2011-12-20 00:31:05+00:00
State: open

The Gemfile has a lot of conditions in it that cause serious problems in environments where the deployment environment uses a different database back end than the local development environment.

What happens is even though the Gemfile.lock is checked in and up-to-date when Gemfile is evaluated it comes up with new dependencies because of the conditions contained within checking for the database adapter and ruby version. As a result Rails is unable to load because Bundler flips its lid seeing the discrepancy between the checked in Gemfile.lock and the Gemfile.lock from evaluating Gemfile.