It cannot create /u/apps/mysite/releases/20121008150536 because the
permissions are wrong. Start at /u/apps/mysite and work down checking
the permissions
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
Now it give result without error. Check its o/p below signature.
But my application is not started. I got following error when I open
domain(simak) in browser.
Is there any step to start rails app with capistrano which i was
missing?
–
Mandeep K.
$ 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 5377ms
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
command finished in 6903ms
copying the cached version to
~/public_html/mysite/releases/20121008153222
As you can see, your task deploy:restart is empty. You should restart
your web server (like unicorn or passenger) in this task. You can define
it
like this
namespace :deploy do
desc “Restart Unicorn”
task :restart do
run “if [ -f #{unicorn_pid} ] && [ -e /proc/$(cat #{unicorn_pid}) ];
then kill -USR2 cat #{unicorn_pid}; else cd #{release_path} && bundle
exec unicorn_rails -c #{unicorn_conf} -E #{rails_env} -D; fi”
end
end