使用shapado本身的deploy.rb文件后运行cap的相关命令会报如下错误:
`<top (required)>': RVM - Capistrano integration was extracted to a separate gem, install: `gem install rvm-capistrano` and remove the `$LOAD_PATH.unshift` line, note also the 'set :rvm_type, :user' is now the default (instead of :system). (RuntimeError)
此时需要在Gemfile中加入
gem 'rvm-capistrano'
并在deploy.rb中加入
require "rvm/capistrano"
继续运行cap命令可能又遇到新问题:
env: /home/expedia/.rvm/bin/rvm-shell: No such file or directory
則需要加入
set :rvm_type, :system