Just a heads up, this thread helped me get capistrano happy too. "default_run_options[:pty] = true" did the trick.. Thanks jamis, especially for pointing out the ssh options to simulate the different behaviour.
On Feb 7, 1:00 pm, Jamis Buck <[email protected]> wrote: > By default, Capistrano WILL load ~/.bashrc for each command (since > about cap 2.4 or so). However, this default causes problems with > interactive processes, like sudo or svn or other processes that may > want to prompt for input. Thus, it is common for people to tell > Capistrano to request a pty from the server, via > default_run_options[:pty] = true. However, when cap requests a pty, > the shell will not load the user's profile script. > > There's no good solution for this, except to NOT rely on your .bashrc > (or similar) script. What kinds of things are you expecting to be set > that way? > > You can mimic a pty-less SSH session like this: > > ssh -T host.com "git clone -q /repos/equity/.git /tmp/test" > > Likewise, you can mimic SSH session with pty-allocation like this: > > ssh -t host.com "git clone -q /repos/equity/.git /tmp/test" > > (pty-allocation is the default for openssh, but the difference there > is that ssh requests an interactive user shell, and capistrano does > not.) > > - Jamis --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
