I am trying to deploy rails app with Capistrano. App is deployed, bundle install is run in
~/.rvm/bin/rvm default do bundle install --path /home/pro/www/shared/bundle --without development test --deployment --quiet
But when I run the app, its using default gemset and not the gems from shared/bundled. I am getting following error
Message from application: <p>It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:</p>
Could not find rake-11.2.2 in any of the sources (Bundler::GemNotFound)
<pre> /home/pro/.rvm/gems/ruby-2.3.1@gemset/gems/bundler-1.12.5/lib/bundler/spec_set.rb:95:in `block in materialize'
I am not understanding the problem here. MY deploy.rb file has:
set :application, 'rails_a[['
set :repo_url, 'git@bitbucket.org:user/app.git'
# set :rvm_ruby_version, 'ruby-2.3.1@gemset'
set :stages, %w(production) set :deploy_to, '/home/pro/www'