I am trying to properly use Capistrano and RVM in order to deploy my Ruby on Rails 3.2.2 application to the remote machine that is running Ubuntu 10.04 LTS. I read the "How do I configure capistrano to use my rvm version of Ruby" question/answer and the "Using RVM rubies with Capistrano" official documentation, but I have still some issues relating to the Rvm - Capistrano integration.
For example, relating to the integration via the rvm capistrano plugin (see the official documentation for more information), what I have to make exactly (since I didn't understand where and how to put the related code)?
Or, relating to the integration via :default_environment
(see the official documentation for more information), you should properly state the following code in the deploy.rb
file:
set :default_environment, {
'PATH' => "/path/to/.rvm/gems/ree/1.8.7/bin:/path/to/.rvm/bin:/path/to/.rvm/ree-1.8.7-2009.10/bin:$PATH",
'RUBY_VERSION' => 'ruby 1.8.7',
'GEM_HOME' => '/path/to/.rvm/gems/ree-1.8.7-2010.01',
'GEM_PATH' => '/path/to/.rvm/gems/ree-1.8.7-2010.01',
'BUNDLE_PATH' => '/path/to/.rvm/gems/ree-1.8.7-2010.01' # If you are using bundler.
}
What those paths refer to? How can I retrieve path values running Linux Ubuntu?
And finally, what integration type do you advice to use?