Error message: “The —deployment flag requires a Gemfile.lock. Please make sure you have checked your Gemfile.lock into version control before deploying.” error when running bundle install through
require "bundler/capistrano" in deploy.rb
In such cases, Jeremy Green suggests to check the releases folder :
It seems like Capistrano picks one server to use as a sort of template server, and then just picks the last directory (sorted alphabetically) in ‘releases’ on the template server and thinks that is where bundler should be run.