On Mon, Oct 8, 2012 at 8:52 PM, Peter Hickman
<[email protected]> wrote:
> It cannot create /u/apps/mysite/releases/20121008150536 because the
> permissions are wrong. Start at /u/apps/mysite and work down checking
> the permissions
>
Ok.
Now I am getting following error:
$ cap deploy
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote [email protected]:megha55/mysite.git master"
command finished in 7283ms
* executing "if [ -d ~/public_html/mysite/shared/cached-copy ]; then
cd ~/public_html/mysite/shared/cached-copy && git fetch -q origin &&
git fetch --tags -q origin && git reset -q --hard
d8c68e8142039f19b36669692144825715bc129a && git clean -q -d -x -f;
else git clone -q [email protected]:megha55/mysite.git
~/public_html/mysite/shared/cached-copy && cd
~/public_html/mysite/shared/cached-copy && git checkout -q -b deploy
d8c68e8142039f19b36669692144825715bc129a; fi"
servers: ["simak"]
Password:
[simak] executing command
** [simak :: out] Permission denied (publickey).
** fatal: The remote end hung up unexpectedly
command finished in 3211ms
*** [deploy:update_code] rolling back
* executing "rm -rf ~/public_html/mysite/releases/20121008152314; true"
servers: ["simak"]
[simak] executing command
command finished in 10ms
failed: "sh -c 'if [ -d ~/public_html/mysite/shared/cached-copy ];
then cd ~/public_html/mysite/shared/cached-copy && git fetch -q origin
&& git fetch --tags -q origin && git reset -q --hard
d8c68e8142039f19b36669692144825715bc129a && git clean -q -d -x -f;
else git clone -q [email protected]:megha55/mysite.git
~/public_html/mysite/shared/cached-copy && cd
~/public_html/mysite/shared/cached-copy && git checkout -q -b deploy
d8c68e8142039f19b36669692144825715bc129a; fi'" on simak
And Cap deploy:setup works without any error. Check its result:
cap deploy:setup
* executing `deploy:setup'
* executing "mkdir -p ~/public_html/mysite
~/public_html/mysite/releases ~/public_html/mysite/shared
~/public_html/mysite/shared/system ~/public_html/mysite/shared/log
~/public_html/mysite/shared/pids"
servers: ["simak"]
Password:
[simak] executing command
command finished in 237ms
* executing "chmod g+w ~/public_html/mysite
~/public_html/mysite/releases ~/public_html/mysite/shared
~/public_html/mysite/shared/system ~/public_html/mysite/shared/log
~/public_html/mysite/shared/pids"
servers: ["simak"]
[simak] executing command
command finished in 10ms
--
Mandeep Kaur
http://mandeepsimak.wordpress.com/
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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 https://groups.google.com/groups/opt_out.