Yes to all of these. The first step should do the second automatically.
> 4. How does the server know to use ssh to get the code from the
> repository?
>
> [ my cap has this line in it now: set :repository, "git://github.com/
> myapp/myapp.git" to access the public repo which works great ]
You will need to change your :repository to your clone url, ie:
set :repository, "g...@github.com:myapp/myapp.git"
In git, if there is no protocol specified like that, it assumes ssh.
That line is equivalent to this one:
set :repository, "ssh://g...@github.com:myapp/myapp.git"
Scott
set :git_shallow_clone, 1
Otherwise it will do a full clone every time you deploy which will get
slower and slower as time goes by. Setting up ssh authentication
should not be hugely difficult - I would recommend logging into your
deploy server as the user set in :
set :user, (user)
and then running 'git clone g...@github.com/(user/project).git' and see
if you get the same error. If so, solve the problem from that side,
if not, then pastie your deploy.rb and I can help further.
Thanks,
Scott