Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7657607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:04:26+00:00 2026-05-31T13:04:26+00:00

I am trying to properly use Capistrano and RVM in order to deploy my

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:04:27+00:00Added an answer on May 31, 2026 at 1:04 pm

    Firstly ensure that rvm installed on the machine.

    See RVM Installation Instructions
    or RVM on Ubuntu 10.04 if rvm isn’t installed.

    Then find where rvm is installed to, this can be done either using the find or locate commands.

    E.g.

    find / -iname *rvm

    or

    locate rvm

    In the output of these commands you will see something that looks like /somedirectory/someotherdirectory/.rvm/gees/somethingelse.

    The /somedirectory/someotherdirectory/ is what you would replace /path/to/ with in deploy.rb or replace ENV['rvm_path'] in the unshift command in the documentation of the first option at Using RVM rubies with Capistrano.

    The paths in the deploy.rb are

    /path/to/.rvm RVM Installation Path

    'PATH' is the binary path that is used to call the rvm binary from.

    See here for more information on PATH.

    GEM_HOME is the home directory of the Gem.

    See here for more information on Gems.

    'GEM_PATH' is the PATH of the Gem.

    'BUNDLE_PATH' is the PATH of the Bundle.

    See here for more information on Bundles and Bundler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use HtmlUnit to test that my GWT website loads properly. Unfortunately,
I'm trying to understand how to properly use memcache in my rails app. Currently,
Im trying to use rails with postgresql and I set everything up properly with
I am trying to properly use Ninject to inject log4net logging into my MVC3
I'm trying to use JQuery Slidetoggle functionality, but not able to use properly. The
I'm trying to use JQuery toggle functionality, but not able to use properly. Instead
I am trying to use vim properly - to aid me I've mapped my
I'm trying to use a border property on a div that is using a
I'm trying to use mock to verify that an index property has been set.
I'm trying to get my head around how to properly use the repository pattern.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.