Open Frank004 opened 10 years ago
same error cap aborted! SSHKit::Runner::ExecuteError: Exception while executing on host [name]: sudo exit status: 1 sudo stdout: Nothing written
Fairly sure that's failing because you've got passwordless sudo disabled and cap3 doesn't play that nicely with that configuration. I think the solution is probably to have a deploy user with passwordless sudo enabled and then a separate app user which doesn't have it enabled. Once I've got something stable I'll update the boom with it but will take a while because means retesting all code in the second half. In the meantime enabling passwordless sudo for the deploy user should fix it. On 31 Aug 2014 12:15, "Faiq Adam" notifications@github.com wrote:
same error cap aborted! SSHKit::Runner::ExecuteError: Exception while executing on host [name]: sudo exit status: 1 sudo stdout: Nothing written
— Reply to this email directly or view it on GitHub https://github.com/TalkingQuickly/capistrano-3-rails-template/issues/27#issuecomment-53984779 .
I think this solution is quite good...
me@localhost $ ssh root@remote
# :application, you can override this by setting the ':deploy_to' variable
root@remote $ deploy_to=/var/www/rails3-bootstrap-devise-cancan-demo
root@remote $ mkdir -p ${deploy_to}
root@remote $ chown deploy:deploy ${deploy_to}
root@remote $ umask 0002
root@remote $ chmod g+s ${deploy_to}
root@remote $ mkdir ${deploy_to}/{releases,shared}
root@remote $ chown deploy ${deploy_to}/{releases,shared}
more info about it in http://capistranorb.com/documentation/getting-started/authentication-and-authorisation/