I am using capistrano for deployment of my rails application. In my config/deploy.rb file how should I give the repo url.
I am following this tutorial: https://gorails.com/deploy/ubuntu/14.04
Instead of set :repo_url, '[email protected]:excid3/myapp.git'
what should be given there if I am using bitbucket
For bitbucket, you would use:
[email protected]:accountname/reponame.git
or
ssh://[email protected]/accountname/reponame.git
See "Use the SSH protocol with Bitbucket"
Note: the comments of the tutorial mentioned in the question add:
Your local key in
~/.ssh/id_rsa
will be tried against the server's/home/deploy/authorized_keys
file.
Capistrano won't allow password authentication, so you must make sure you ran thessh-copy-id
to add your pub key to the server deploy user'sauthorized_keys
file.