In Gemfile
:
# Use Capistrano for deployment
group :development do
gem 'capistrano'
gem 'capistrano-passenger'
gem 'capistrano-rails'
gem 'capistrano-bundler'
gem 'capistrano-rvm'
gem 'highline'
end
In deploy.rb
# Set rvm type
#set :rvm\_type, :user
set :rvm\_custom\_path, '/usr/local/rvm'
# Remote server using rvm
set :rvm\_ruby\_version, '[email protected]'
In config/environment/production.rb
config.require_master_key = true