On 02/09/09 15:21, 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?
You'll find that you get different environment for a login shell. How are you loading your functions? You probably need to load them in ~/.bashrc rather than ~/.bash_profile R. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
