umar
umar

Reputation: 4389

how to specify path to Gemfile.lock during bundle install with 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 am using capistrano to deploy the application code, but when i run cap deploy, then it fails to install gems using bundler, because it expects the Gemfile.lock to be in the application directory, whereas it is actually in the application/rails_code directory.

How can i specify the correct location of the Gemfile?

Upvotes: 6

Views: 1789

Answers (1)

umar
umar

Reputation: 4389

This is configurable, do:

set :bundle_gemfile,  "rails_code/Gemfile"

Upvotes: 11

Related Questions