How to specify the path to Gemfile.lock during package installation using capistrano

My directory structure is as follows:

application/
  tmp/
  rails_code/Capfile
  rails_code/config/deploy.rb
  rails_code/Gemfile
  rails_code/Gemfile.lock
  non_rails_code/

I use capistrano to deploy the application code, but when I start deploying the cap, then it cannot install gems using bundler because it expects Gemfile.lock to be in the application directory, whereas it is actually in the application / rails _code .

How can I indicate the correct location of the gemfile?

+5
source share
1 answer

This is configurable, do:

set :bundle_gemfile,  "rails_code/Gemfile"
+10
source

All Articles