Skip to content

Instantly share code, notes, and snippets.

@strongwave
Created September 23, 2011 21:27
Show Gist options
  • Save strongwave/1238482 to your computer and use it in GitHub Desktop.
Save strongwave/1238482 to your computer and use it in GitHub Desktop.
deploy.rb file top for Capistrano Deployment with RVM
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require "rvm/capistrano"
set :rvm_ruby_string, '1.9.2@rails3010'
set :rvm_type, :user # Don't use system-wide RVM
@strongwave
Copy link
Author

If you are deploying using Capistrano and on your prod server, you were using rvm, make sure you put the above lines at the top of your deploy.rb file, replace :rvm_ruby_string with your rvm environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment