-
Notifications
You must be signed in to change notification settings - Fork 70
7hunderbird edited this page Mar 15, 2013
·
4 revisions
Make sure you have the rvm-capistrano
gem installed (via your Gemfile) and use this documentation for more on setting that up:
But the main thing to use for your deploy.rb
file is this:
set :rvm_type, :system
set :rvm_ruby_string, "1.9.3@#{application}"
set :rvm_require_role, :app
require "rvm/capistrano"
cron support:
application="my-app-name-from-deploy.rb"
PATH=/usr/local/rvm/wrappers/${application}
conditional scripts:
application="my-app-name-from-deploy.rb"
rvm_path=/usr/local/rvm
if [[ -s "$rvm_path/environments/${application}" ]]
then PATH="$rvm_path/wrappers/${application}:$PATH"
fi