Created
September 23, 2011 21:27
-
-
Save strongwave/1238482 to your computer and use it in GitHub Desktop.
deploy.rb file top for Capistrano Deployment with RVM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$:.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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.