Skip to content
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:

https://github.com/wayneeseguin/rvm-capistrano/blob/feature/readme_for_1.3.0/README.md

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
Clone this wiki locally