Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Custom SCM command name? (trouble with PATH not set for pseudo terminal)
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
 
Rafael G.  
View profile   Translate to Translated (View Original)
 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

Aníbal Rojas wrote:
> 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

--
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.

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