title: Bundler: You are trying to install in deployment mode after changing your Gemfile
body: <p>I'm pretty new to bundler and capistrano, and I'm trying to use them together. When I try to deploy, I get the message:</p>
  
  <blockquote>
    <p>You are trying to install in deployment mode after changing your Gemfile. Run `bundle install' elsewhere and add the updated Gemfile.lock to version control.</p>
  </blockquote>
  
  <p>I don't know how to satisfy the system that's complaining, and I don't understand why the complaint is coming up because I read in <a href="http://gembundler.com/man/bundle-install.1.html">the doc</a>:</p>
  
  <blockquote>
    <p>If a Gemfile.lock does exist, and you have updated your Gemfile(5),
    bundler will use the dependencies in the Gemfile.lock for all gems
    that you did not update, but will re-resolve the dependencies of gems
    that you did update. You can find more information about this update
    process below under CONSERVATIVE UPDATING.</p>
  </blockquote>
  
  <p>I interpret that to mean that the Bundler can handle the fact that my Gemfile is not whatever it expected. Any help?</p>
  
  <p><em>Specs: Ruby 1.9.3, Rails 3.2.3, Capistrano 2.12.0, Bundler 1.1.4, Windows 7, deploying to a Posix machine.</em></p>
  
  <p><strong>Edit:</strong> My Gemfile includes logic blocks like the following:</p>
  
  <pre><code>unless RbConfig::CONFIG['host_os'] === 'mingw32'
    # gem 'a' ...
  end
  </code></pre>