Capistrano with rvm installed on server

Add below code to “deploy.rb”

require "bundler/capistrano"
$:.unshift(File.expand_path("./lib", ENV["rvm_path"]))
require "rvm/capistrano"
# specify the ruby version
set :rvm_ruby_string, "ruby-1.9.2-p180"
# rvm installed at 'system' or 'user' level
set :rvm_type, :user

You can look at this article

blog comments powered by Disqus