title: Rvm - Capistrano integration on Linux Ubuntu
body: <p>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 "<a href="https://stackoverflow.com/questions/1978797/how-do-i-configure-capistrano-to-use-my-rvm-version-of-ruby">How do I configure capistrano to use my rvm version of Ruby</a>" question/answer and the "<a href="http://beginrescueend.com/integration/capistrano/" rel="nofollow noreferrer">Using RVM rubies with Capistrano</a>" official documentation, but I have still some issues relating to the <em>Rvm - Capistrano integration</em>.</p>
  
  <p>For example, relating to the <em>integration via the rvm capistrano plugin</em> (see the official documentation for more information), <strong>what I have to make exactly</strong> (since I didn't understand <em>where</em> and <em>how</em> to put the related code)<strong>?</strong></p>
  
  <p>Or, relating to the <em>integration via <code>:default_environment</code></em> (see the official documentation for more information), you should properly state the following code in the <code>deploy.rb</code> file:</p>
  
  <pre><code>set :default_environment, {
    'PATH'         =&gt; "/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' =&gt; 'ruby 1.8.7',
    'GEM_HOME'     =&gt; '/path/to/.rvm/gems/ree-1.8.7-2010.01',
    'GEM_PATH'     =&gt; '/path/to/.rvm/gems/ree-1.8.7-2010.01',
    'BUNDLE_PATH'  =&gt; '/path/to/.rvm/gems/ree-1.8.7-2010.01'  # If you are using bundler.
  }
  </code></pre>
  
  <p><strong>What those paths refer to?</strong> How can I retrieve path values running Linux Ubuntu?</p>
  
  <p>And finally, what integration type do you advice to use?</p>