Nevermind...

set :scm_password, proc{Capistrano::CLI.password_prompt('SVN
password:' )}
set :password, proc{Capistrano::CLI.password_prompt('User
password:' )}

handled things nicely

On May 10, 4:04 pm, Craig White <white.n...@gmail.com> wrote:
> Capistrano 2.6.0
>
> If I put in passwords - it all works fine...
>
> $ cap deploy:update
>   * executing `deploy:update'
>  ** transaction: start
>   * executing `deploy:update_code'
>     executing locally: "svn infohttps://svn.XXXX.com/svn/scratch--
> username cwhite --password $MY_PASS --no-auth-cache  -rHEAD"
>     command finished in 232ms
>   * executing "svn checkout -q --username cwhite --password $MY_PASS --
> no-auth-cache  -r2https://svn.XXXX.com/svn/scratch/Users/craigwhite/
> Projects/deploy/scratch/releases/20110510225629 && (echo 2 > /Users/
> craigwhite/Projects/deploy/scratch/releases/20110510225629/REVISION)"
>     servers: ["localhost"]
>     [localhost] executing command
>     command finished in 1105ms
>   * executing `deploy:finalize_update'
>   * executing "chmod -R g+w /Users/craigwhite/Projects/deploy/scratch/
> releases/20110510225629"
>     servers: ["localhost"]
>     [localhost] executing command
>     command finished in 25ms
>   * executing "rm -rf /Users/craigwhite/Projects/deploy/scratch/
> releases/20110510225629/log /Users/craigwhite/Projects/deploy/scratch/
> releases/20110510225629/public/system /Users/craigwhite/Projects/
> deploy/scratch/releases/20110510225629/tmp/pids &&\\\n      mkdir -p /
> Users/craigwhite/Projects/deploy/scratch/releases/20110510225629/
> public &&\\\n      mkdir -p /Users/craigwhite/Projects/deploy/scratch/
> releases/20110510225629/tmp &&\\\n      ln -s /Users/craigwhite/
> Projects/deploy/scratch/shared/log /Users/craigwhite/Projects/deploy/
> scratch/releases/20110510225629/log &&\\\n      ln -s /Users/
> craigwhite/Projects/deploy/scratch/shared/system /Users/craigwhite/
> Projects/deploy/scratch/releases/20110510225629/public/system &&\\
> \n      ln -s /Users/craigwhite/Projects/deploy/scratch/shared/pids /
> Users/craigwhite/Projects/deploy/scratch/releases/20110510225629/tmp/
> pids"
>     servers: ["localhost"]
>     [localhost] executing command
>     command finished in 16ms
>   * executing "find /Users/craigwhite/Projects/deploy/scratch/releases/
> 20110510225629/public/images /Users/craigwhite/Projects/deploy/scratch/
> releases/20110510225629/public/stylesheets /Users/craigwhite/Projects/
> deploy/scratch/releases/20110510225629/public/javascripts -exec touch -
> t 201105102256.31 {} ';'; true"
>     servers: ["localhost"]
>     [localhost] executing command
>     command finished in 95ms
>   * executing `deploy:symlink'
>   * executing "rm -f /Users/craigwhite/Projects/deploy/scratch/current
> && ln -s /Users/craigwhite/Projects/deploy/scratch/releases/
> 20110510225629 /Users/craigwhite/Projects/deploy/scratch/current"
>     servers: ["localhost"]
>     [localhost] executing command
>     command finished in 8ms
>  ** transaction: commit
>
> If I comment out the passwords in config/deploy.rb then it all
> hangs...
>
> (commenting these 2 lines)
> # set :password, "$MY_PASS"
> # set :scm_password, "$MY_PASS"
>
> $ cap deploy:update
>   * executing `deploy:update'
>  ** transaction: start
>   * executing `deploy:update_code'
>     executing locally: "svn infohttps://svn.XXXX.com/svn/scratch--
> username cwhite --password  --no-auth-cache  -rHEAD"
> Authentication realm: <https://svn.XXXX.com:443> Developers
> Username: cwhite
> Password for 'cwhite':
>     command finished in 9473ms
>   * executing "svn checkout -q --username cwhite --password  --no-auth-
> cache  -r2https://svn.XXX.com/svn/scratch/Users/craigwhite/Projects/
> deploy/scratch/releases/20110510230115 && (echo 2 > /Users/craigwhite/
> Projects/deploy/scratch/releases/20110510230115/REVISION)"
>     servers: ["localhost"]
> Password:
>     [localhost] executing command
>  ** [localhost :: err] Authentication realm: <https://svn.XXXX.com:
> 443> Developers
>  ** Username:
>
> and it will hang there forever (I believe forever but after a minute
> or so, I just press Control C).
>
> WTF?
>
> Craig

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to capistrano@googlegroups.com
* To unsubscribe from this group, send email to 
capistrano+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to