Where're your functions? in .bashrc? If it's saved there this file is not used with this option:
|default_run_options[:pty] = false| Because capistrano uses a login shell and then load .bash_profile. Perhaps it solves your problem: |default_run_options[:pty] = true| More info: http://www.capify.org/index.php/Path_Problems http://hacktux.com/bash/bashrc/bash_profile Will Clark wrote: > I have a few bash functions on the server I'm deploying to. When I ssh > into the server using the same user account I deploy with, I can call > the functions without any problems. > > However, if I try to call the functions from my deploy script I get: > > sh: my-function: command not found > > In my deploy script I'm just calling: run "my-function" > > I've even tried in the cap shell to run the commands, and I get the > same error. > > Any ideas on how to get this working? > > > > -- Rafa --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Capistrano" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.co.uk/group/capistrano?hl=en -~----------~----~----~----~------~----~------~--~---
