Gergely,

You can use:

run "command1 && command2".

This is how is done in the included deploy.rb for Rails projects.

Best regards,
Manuel.


On 05/13/2011 06:37 AM, Gergely Buday wrote:
Hi there,

when I use

   run "command1"
   run "command2"

as far as I understand, each run invokes an ssh connection, so setting
a directory in one does not affect the other one. How can I set a
working directory for a series of commands?

- Gergely


--
* 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.com/group/capistrano?hl=en

Reply via email to