Hi,
I have git working nicely with capistrano although my repo is on the
same remote host however this might also help to give you an idea from
my deploy.rb:
#ssh stuff
ssh_options[:port] = 10023
ssh_options[:username] = "mysshaccountusername"
ssh_options[:forward_agent] = true
set :user, "deploy_user"
set :domain, "myserver.co.uk"
set :application, "myapp"
#git stuff
set :keep_releases, 3
set :repository, "ssh://[EMAIL PROTECTED]:10022/opt/repos/
#{application}.git"
set :scm, :git
set :deploy_via, :remote_cache
set :deploy_to, "/home/www/myserver.co.uk/#{application}"
regards,
John
On May 29, 4:38 am, gobigdave <[EMAIL PROTECTED]> wrote:
> After some testing with git, I decided to move my project from svn to
> git. Unfortunately, I can't get it to deploy. I've been googling
> around for a while without any luck.
>
> In deploy.rb, I have:
>
> set :scm, "git"
> set :repository, "[EMAIL PROTECTED]"
> set :branch, "master"
> set :deploy_via, :remote_cache
>
> ssh_options[:paranoid] = false
> ssh_options[:keys] = %w(/Users/dave/.ssh/id_rsa /Users/dave/.ssh/
> id_rsa_inquisix)
> ssh_options[:port] = 2346
> ssh_options[:forward_agent] = true
>
> I get this:
>
> ** [out] Permission denied (publickey).
> ** [out] fatal: The remote end hung up unexpectedly
>
> I'm guessing my problem revolves around ssh keys. I use Unfuddle for
> my git repository, and since I have two accounts there I have to have
> two sets of keys. As a result, I use one key (id_rsa) for access to my
> server, but git needs another (id_rsa_inquisix). Also, I don't use
> the default ssh port on my server, but git does. My guess is this is
> causing capistrano a problem.
>
> Any ideas how I can make this work?
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---