Skip to content

Instantly share code, notes, and snippets.

@vpacher
Forked from threedaymonk/deploy.rb
Created November 2, 2010 22:23
Show Gist options
  • Select an option

  • Save vpacher/660416 to your computer and use it in GitHub Desktop.

Select an option

Save vpacher/660416 to your computer and use it in GitHub Desktop.
rvm_path = "#{deployment_user_home_directory}/.rvm"
rvm_version = "ruby-1.9.2-p0" # Find this in ~/.rvm/rubies/
set :default_environment, {
"PATH" => %W[
#{rvm_path}/gems/#{rvm_version}/bin
#{rvm_path}/gems/#{rvm_version}@global/bin
#{rvm_path}/rubies/#{rvm_version}/bin
#{rvm_path}/bin
$PATH
].join(":"),
"BUNDLE_PATH" =>
"#{rvm_path}/gems/#{rvm_version}",
"GEM_PATH" => %W[
#{rvm_path}/gems/#{rvm_version}
#{rvm_path}/gems/#{rvm_version}@global
].join(":")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment