[capistrano] Re: How after connect execute all commands under another user?

2009-07-08 Thread Lee Hambley
Kronos, You can't do that, sorry - you will need to reconsider how your server checks out from SVN, or how Capistrano connects... you can't run all commands as another user, or borrow another user's keys, that's unix 101. Happy to accept a patch to do what you want this to do, as the ability to

[capistrano] Re: Not deploy to 2 roles

2009-07-08 Thread Shumkov
Thanx, work fine on ruby version: macbook-ivan-shumkov:geometria ivanshumkov$ ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9] On 8 июл, 03:27, Rafael G. r...@aspgems.com wrote: Can you try the same with other ruby version?[1]

[capistrano] Re: Not deploy to 2 roles

2009-07-08 Thread Lee Hambley
Rafael, Thanks for handling that query, we need to resolve this as more and more people are tripping over it lately. - Lee 2009/7/8 Shumkov ivanshum...@gmail.com Thanx, work fine on ruby version: macbook-ivan-shumkov:geometria ivanshumkov$ ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72)

[capistrano] Re: How after connect execute all commands under another user?

2009-07-08 Thread Rafael G.
Hi cindy, You can solve it creating the files with your current user then do a chown with sudo. Example: task :chown_file do run touch ~/file_foo.txt sudo chown www-data:www-data file_foo.txt end Bye! cswebgrl wrote: I've got a related

[capistrano] Re: How after connect execute all commands under another user?

2009-07-08 Thread cswebgrl
Thanks Rafa. Can I implement this for the directories so that Capistrano won't give me permissions errors? When running deploy:check I get this error: The following dependencies failed. Please check them and try again: -- You do not have permissions to write to `/var/www/projectname'. Where

[capistrano] Re: How after connect execute all commands under another user?

2009-07-08 Thread Rafael G.
You're welcome. Make sure the base directory(/var/www in your case) have the appropiate permissions before running deploy:{check|setup|...} cswebgrl wrote: Thanks Rafa. Can I implement this for the directories so that Capistrano won't give me permissions errors? When running