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)

View Parsed - Show only message text

Received: by 10.210.142.6 with SMTP id p6mr140060ebd.1.1246569574032;
        Thu, 02 Jul 2009 14:19:34 -0700 (PDT)
Return-Path: <r...@aspgems.com>
Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com [209.85.219.224])
        by gmr-mx.google.com with ESMTP id 16si667391ewy.7.2009.07.02.14.19.33;
        Thu, 02 Jul 2009 14:19:33 -0700 (PDT)
Received-SPF: pass (google.com: domain of r...@aspgems.com designates 209.85.219.224 as permitted sender) client-ip=209.85.219.224;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of r...@aspgems.com designates 209.85.219.224 as permitted sender) smtp.mail=...@aspgems.com
Received: by mail-ew0-f224.google.com with SMTP id 24so2514100ewy.1
        for <capistrano@googlegroups.com>; Thu, 02 Jul 2009 14:19:33 -0700 (PDT)
Received: by 10.210.54.9 with SMTP id c9mr1198453eba.21.1246569573338;
        Thu, 02 Jul 2009 14:19:33 -0700 (PDT)
Return-Path: <r...@aspgems.com>
Received: from ?192.168.1.34? (219.Red-83-54-180.dynamicIP.rima-tde.net [83.54.180.219])
        by mx.google.com with ESMTPS id 24sm109828eyx.53.2009.07.02.14.19.32
        (version=SSLv3 cipher=RC4-MD5);
        Thu, 02 Jul 2009 14:19:32 -0700 (PDT)
Message-ID: <4A4D2474.4090600@aspgems.com>
Date: Thu, 02 Jul 2009 23:19:48 +0200
From: "Rafael G." <r...@aspgems.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090605)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
To: capistrano@googlegroups.com
Subject: Re: [capistrano] Custom SCM command name? (trouble with PATH not
 set for pseudo  terminal)
References: <e5fa28ec-3f1d-43fa-adc9-85493ccada2f@h8g2000yqm.googlegroups.com>
In-Reply-To: <e5fa28ec-3f1d-43fa-adc9-85493ccada2f@h8g2000yqm.googlegroups.com>

Hi anibal,
 You can customize SCM command with the variable:
    set :scm_command, '/home/foo/bin/bzr'

Regards

An=EDbal 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=
.php
>
>      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=EDbal
> >
>
>  =20


--=20
Rafa


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