Go to Google Groups Home    Capistrano
Custom SCM command name? (trouble with PATH not set for pseudo terminal)

Aníbal Rojas <anibalro...@gmail.com>

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