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 9199709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:35:49+00:00 2026-06-17T22:35:49+00:00

As I understand, all that Capistrano does is ssh into the server and execute

  • 0

As I understand, all that Capistrano does is ssh into the server and execute the commands we want it to (mostly).

I’ve used rvm in some past couple of projects, and had to install the rvm-capistrano gem. Otherwise, it failed to find the executables (or so I recall), even though we had a proper .rvmrc file (with the correct ruby and the correct gemset) in the repository.

Similarly, today I was setting up deployment for a project for which I’m using pythonbrew, and a simple “cd #{deploy_to}/current && pythonbrew venv use myenv && gunicorn_django -c gunicorn.py” gave me an error message saying “cannot find the executable gunicorn_django”. This, I suppose is because the virtualenv was not activated correctly. But didn’t we activate the environment when we did “pythonbrew venv use myenv”? The complete command works fine if I ssh into the server and execute it on the shell, but it doesn’t when I do it via Capistrano.

My question is – why does Capistrano need modifications to play along with programs like rvm and pythonbrew, even though all it’s doing is executing a couple of commands over ssh?

  • 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-06-17T22:35:50+00:00Added an answer on June 17, 2026 at 10:35 pm

    Thats because their ssh’ing in doesn’t activate your shell’s environment. So it’s not picking up the source statements that enable the magic. Just do an rvm use … before running commands instead of assuming the cd will pick that up automatically. Should be fine then. If you had been using fabric there is the env() context manager that you could use to be sure thats run before each command.

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

Sidebar

Related Questions

I understand that the browser does all the work in processing client side scripts
I've done some research into this but not sure I understand all the pieces
I'm lead to understand that the following grants all proveleges to all databases that
I understand that prototype method is shared by all instances of an object in
*edit: I understand that stackoverflow has banned all questions regarding using Microsoft's Visio. I'm
We all know of sleep method available in java threads.. I understand that the
The question says it all. I understand that VC11 is currently only in beta,
First of all, I do understand, that MVC 3 default template's Content folder is
I understand that all InProc session data is always gone when its w3wp owner
While we all understand that to declare constants (for brevity reasons) in an interface

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.