Hmmm.
The svn repository you tested on the command-line is not the same one
you have in your deploy.rb (different IP addresses, different
repository path, different user name).
Also, note that the recommended way to set the user name is (in cap2)
with the :scm_username variable:
set :scm_username, "deploy"
Now, since the actual svn checkout occurs (by default) on the remote
machine, you'll need to make sure you have your keys set up so that
you can do the svn checkout on the remote machine. That, or see if
pageant works with ssh agent forwarding:
ssh_options[:forward_agent] = true
Lastly, if pageant is already running, you don't need a task to start
it up. I'd recommend having it start up when your machine starts.
- Jamis
On Jun 5, 2007, at 11:28 PM, peterB wrote:
>
> Hi, only what I did on windows is
> Copy pageant.exe, plink.exe to windows/system32 dir
>
> Subversion server config file
> [tunnels]
> svn = plink
>
> Run pageant.exe end add ssh key
>
> Test svn check out on command line
> svn checkout svn+ssh://192.168.1.102/svn/myapp/trunk
>
> In deploy.rb set:
> set :user, "deploy"
> set :password, "password"
> set :repository, "svn+ssh://[EMAIL PROTECTED]/var/svn/lovcicen/
> tag"
> ssh_options[:keys] = File.join("config", ssh_key_name)
>
> I also added to cap start pageant
>
> before "deploy:cold", "deploy:pageant"
>
> desc "This task run Pageant.exe for windows. needed for storing ssh
> key"
> deploy.task :pageant do
> path = File.join("config","deploy_key.ppk")
> system("START \"Pageant.exe - SSH\" cmd.exe /MIN /c pageant.exe
> #{path}")
> puts "loaded pageant.exe for windows svn+ssh"
>
> end
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---