【发布时间】:2016-12-07 08:21:42
【问题描述】:
我正在尝试使用 Capistrano 部署 Rails 应用程序。应用已部署,捆绑安装运行在
~/.rvm/bin/rvm 默认做 bundle install --path /home/pro/www/shared/bundle --without development test --deployment --quiet
但是当我运行应用程序时,它使用的是默认 gemset,而不是来自共享/捆绑的 gem。我收到以下错误
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'
我不明白这里的问题。我的 deploy.rb 文件有:
set :application, 'rails_a[['
set :repo_url, 'git@bitbucket.org:user/app.git'
# set :rvm_ruby_version, 'ruby-2.3.1@gemset'
设置:阶段,%w(生产) 设置 :deploy_to, '/home/pro/www'
【问题讨论】:
标签: ruby-on-rails capistrano capistrano3 rvm-capistrano