Hi Doron
If I understand correctly your shell username and svn username differ.
This is not uncommon, we have read-only users for all our projects,
and capistrano uses them to do the deployment.
I will not humiliate myself by telling you how we go about caching the
svn auth details on the target servers, but will rather point you to a
few lines of code I found capistrano's subversion module.
def authorization
username = configuration[:svn_username] ? "--username
#{configuration[:svn_username]}" : ""
password = configuration[:svn_password] ? "--password
#{configuration[:svn_password]}" : ""
"--no-auth-cache #{username} #{password}"
end
If I reversed the above method correctly you could simply use the
following two lines in your deploy.rb
set :svn_username, svnuser
set :svn_password, svnpass
I cc'd the list for any corrections, I'll have to try this myself to
see if it works.
HTH
On 4/11/07, doron <[EMAIL PROTECTED]> wrote:
> i had the same problem with windows.
> the installation you offered helped solving the svn problem.
> thanks.
>
> i now have another problem: the username for deployed server is not
> the same as the username for svn server.
> do you know of a solution for this?
>
>
> doron
>
> On Jan 31, 11:06 pm, "Kenneth Kalmer" <[EMAIL PROTECTED]>
> wrote:
> > On 1/31/07, Steve Downey <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Dev box:
> >
> > > -Windows
> > > - Eclipse (Radrails, Subclipse)
> >
> > Almost identical, each developer runs Gentoo in VMWare over a smb
> > share mounted as a network drive...
> >
> > > Deployment
> > > - Unix (Solaris)
> >
> > Gentoo again...
> >
> > > My first attempt to run deploy failed becauseWindowsdoesn't know
> > > what "svn" is.
> >
> > > I assume that Subclipse did its own magic with respect to svn; in any
> > > event, svn from theWindowscommand line doesn't work.
> >
> > Subclipse has its own version of svn builtin, a pure Java
> > implementation. So yes, you'll need a seperate svn installed for
> > winblows, and it needs to be in your %PATH%. Try the installer
> > available
> > athttp://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
> > and see if it works (I take no responsibility).
> >
> > My best advice forWindowsRails developers is getting VMWare... It is
> > definitely worth it!
> >
> > HTH
> >
> > --
> >
> > Kenneth Kalmer
> > [EMAIL PROTECTED]
> >
> > [EMAIL PROTECTED]
> > statshttp://fah-web.stanford.edu/cgi-bin/main.py?qtype=userpage&username=k...
>
>
--
Kenneth Kalmer
[EMAIL PROTECTED]
[EMAIL PROTECTED] stats
http://fah-web.stanford.edu/cgi-bin/main.py?qtype=userpage&username=kenneth%2Ekalmer
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---