Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Custom SCM command name? (trouble with PATH not set for pseudo terminal)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Aníbal Rojas  
View profile   Translate to Translated (View Original)
 More options 2 July, 21:33
From: Aníbal Rojas <anibalro...@gmail.com>
Date: Thu, 2 Jul 2009 13:33:09 -0700 (PDT)
Local: Thurs 2 July 2009 21:33
Subject: Custom SCM command name? (trouble with PATH not set for pseudo terminal)
Hello,

    This started as: http://bit.ly/sutXR a few days ago

    The problem I am facing is that environment variables are not
being set for the pseudo terminal. The SCM (Bazaar) is installed in
the home directory of the user, and capistrano is not finding it
because the PATH set in .bash_profile is not executed.

    I tried the solution at:

    http://blog.pretheory.com/arch/2008/02/capistrano_path_and_environmen...

     And checked the variables set using:

desc "Echo environment vars"
namespace :env do
  task :echo do
    run "echo printing out cap info on remote server"
    run "echo $PATH"
    run "printenv"
  end
end

    (Really nice) but it wont work as I won't have
PermitUserEnvironment yes :-(

    I think that a cheap and dirty solution would be specifying a
custom command name for the SCM in this case is Bazaar, something like
invoking it this way:

   /home/foo/bin/bzr

   With the full qualified path, not sure if this is supported out of
the box (I think no) and would require hacking Capistrano  or if this
is even a good idea, but I am running out of idea.

--
Aníbal


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rafael G.  
View profile   Translate to Translated (View Original)
(1 user)  More options 2 July, 22:19
From: "Rafael G." <r...@aspgems.com>
Date: Thu, 02 Jul 2009 23:19:48 +0200
Local: Thurs 2 July 2009 22:19
Subject: Re: [capistrano] Custom SCM command name? (trouble with PATH not set for pseudo terminal)
Hi anibal,
 You can customize SCM command with the variable:
    set :scm_command, '/home/foo/bin/bzr'

Regards

--
Rafa

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aníbal Rojas  
View profile   Translate to Translated (View Original)
 More options 2 July, 22:30
From: Aníbal Rojas <anibalro...@gmail.com>
Date: Thu, 2 Jul 2009 14:30:13 -0700 (PDT)
Local: Thurs 2 July 2009 22:30
Subject: Re: Custom SCM command name? (trouble with PATH not set for pseudo terminal)
Rafael,

   Muchas gracias, funcionó a la perfección.

--
Aníbal


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google