John Kopanas
2006-Mar-20 18:31 UTC
[Rails] Capistrano, ftp user and svn user are different
What do you do when the ftp login username is different then the svn
username?
Every time I try to deploy it gets stuck right here:
[kopanas.com] executing command
** [out :: kopanas.com] Authentication realm: <http://kopanas.com:80>
kopanas.com
** [out :: kopanas.com] Password for ''jkopanas'':
** [out :: kopanas.com] subversion is asking for a password
** [out :: kopanas.com] Authentication realm: <http://kopanas.com:80>
kopanas.com
** [out :: kopanas.com] Username:
And then it never moves. I am assuming the problem is with username
and password. Anyone have any insight?
John,
I assume you mean ssh, not ftp? Capistrano does not work with ftp.
Regarding svn, you can set the svn user name and password explicitly,
either in your recipe file:
set :svn_username, "rapunzel"
set :svn_password, "l3tdoony3rh4r"
Or via the cap command-line:
cap -s svn_username=rapunzel -s svn_password=l3tdoony3rh4r ...
If you''d rather configure things so that you get prompted for the
password the first time it is needed, rather than hard-coding it in
your recipe file, you can do:
set(:svn_password) { Capistrano::CLI.password_prompt }
Hope that helps,
Jamis
On Mar 20, 2006, at 11:30 AM, John Kopanas wrote:
> What do you do when the ftp login username is different then the
> svn username?
>
> Every time I try to deploy it gets stuck right here:
>
> [kopanas.com] executing command
> ** [out :: kopanas.com] Authentication realm: <http://kopanas.com:
> 80> kopanas.com
> ** [out :: kopanas.com] Password for ''jkopanas'':
> ** [out :: kopanas.com] subversion is asking for a password
> ** [out :: kopanas.com] Authentication realm: <http://kopanas.com:
> 80> kopanas.com
> ** [out :: kopanas.com] Username:
>
> And then it never moves. I am assuming the problem is with
> username and password. Anyone have any insight?
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
John Kopanas
2006-Mar-21 17:53 UTC
[Rails] Capistrano, ftp user and svn user are different
That''s right. Thanks Jamis. On 21-Mar-06, at 9:15 AM, Jamis Buck wrote:> John, > > I assume you mean ssh, not ftp? Capistrano does not work with ftp. > > Regarding svn, you can set the svn user name and password > explicitly, either in your recipe file: > > set :svn_username, "rapunzel" > set :svn_password, "l3tdoony3rh4r" > > Or via the cap command-line: > > cap -s svn_username=rapunzel -s svn_password=l3tdoony3rh4r ... > > If you''d rather configure things so that you get prompted for the > password the first time it is needed, rather than hard-coding it in > your recipe file, you can do: > > set(:svn_password) { Capistrano::CLI.password_prompt } > > Hope that helps, > > Jamis > > On Mar 20, 2006, at 11:30 AM, John Kopanas wrote: > >> What do you do when the ftp login username is different then the >> svn username? >> >> Every time I try to deploy it gets stuck right here: >> >> [kopanas.com] executing command >> ** [out :: kopanas.com] Authentication realm: <http://kopanas.com: >> 80> kopanas.com >> ** [out :: kopanas.com] Password for ''jkopanas'': >> ** [out :: kopanas.com] subversion is asking for a password >> ** [out :: kopanas.com] Authentication realm: <http://kopanas.com: >> 80> kopanas.com >> ** [out :: kopanas.com] Username: >> >> And then it never moves. I am assuming the problem is with >> username and password. Anyone have any insight? >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/railsJohn Kopanas http://www.kopanas.com ====================================================================http://www.soenlive.com - the sound of software engineering http://www.cusec.net - software engineering conference http://www.soen.info - source of the freshest software engineering information on the net