Set :scm_username, not :svn_username (unless you're using Capistrano
1.4.x or earlier). The variable was renamed in Capistrano 2.0 for
greater consistency between different SCM's.
- Jamis
On Wed, Dec 3, 2008 at 4:06 PM, BarefootSanders <[EMAIL PROTECTED]> wrote:
>
> I'm having trouble authenticating and getting the right credentials to
> the right places. This is the deploy.rb file:
>
> --------------------------------------------------------------------------------------------------------
> # deploy.rb
> set :application, "my application"
> set :repository, "my svn repo"
>
> # If you aren't deploying to /u/apps/#{application} on the target
> # servers (which is the default), you can specify the actual location
> # via the :deploy_to variable:
> set :deploy_to, "my www root"
>
> # If you aren't using Subversion to manage your source code, specify
> # your SCM below:
> # set :scm, :subversion
>
> server "my web host", :app, :web, :db, :primary => true
>
> set :use_sudo, false
>
> set :user, 'my ssh username'
> set :svn_username, 'my svn username'
> --------------------------------------------------------------------------------------------------------
>
> This is the output of cap deploy:update:
>
> Project/root$ cap deploy:update
> * executing `deploy:update'
> ** transaction: start
> * executing `deploy:update_code'
> executing locally: "svn info {my svn repo}/ -rHEAD"
> * executing "svn checkout -q -r10 {my svn repo} {my deploy path}/
> releases/20081203225415 && (echo 10 > {my deploy path}/20081203225415/
> REVISION)"
> servers: ["{my application server}"]
> Password:
> [{my application server}] executing command
> ** [{my application server} :: err] Authentication realm: <{my svn
> repo}> repositories
> ** [{my application server} :: err] Password for '{MY SSH USERNAME
> WHICH SHOULD BE MY SVN USERNAME}':
> ** [{my application server} :: err] Authentication realm: <{my svn
> repo}> repositories
> ** [{my application server} :: err] Username:
>
> and right after the Username prompt it throws a line break and hangs.
> i can ctrl+c it but that just crashes it. Other than that I cant do
> anything. If you notice, its using my ssh username for the svn repo.
> I'm hoping i can correct this and it will fix the problem.
>
> Any suggestions?
>
> Just some more info, my svn repo is an http:// url. Does that
> matter? I dont believe my svn host supports ssh+svn://
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---