I am new to bundler and capistrano and I am trying to use them together. When I try to deploy, I get a message:
You are trying to install in deployment mode after modifying the gemfile. Run `bundle install 'elsewhere and add the updated Gemfile.lock to the version control.
I don’t know how to satisfy the system complaining, and I don’t understand why the complaint comes because I read in the document :
If Gemfile.lock exists and you updated your Gemfile (5), the bundler will use the dependencies in Gemfile.lock for all the gems that you did not update, but will re-solve the dependencies of the gems that you updated. You can find additional information about this update process below under CONSERVATIVE UPDATES.
I interpret this as meaning that the Bundler can handle the fact that my Gemfile is not the one it was expecting. Any help?
Features: Ruby 1.9.3, Rails 3.2.3, Capistrano 2.12.0, Bundler 1.1.4, Windows 7, deployment on a Posix machine.
Edit: My Gemfile contains logical blocks, such as:
unless RbConfig::CONFIG['host_os'] === 'mingw32'
ruby-on-rails bundler capistrano
JellicleCat Jul 16 2018-12-12T00: 00Z
source share