# Cap deployment painfully slow

**URL:** <https://www.ruby-forum.com/t/cap-deployment-painfully-slow/110272>\
**Category:** Rails\
**Created:** [July 24, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/cap-deployment-painfully-slow/110272 "2007-07-24T20:39:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blinking\_bear](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Post date:** [July 24, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/cap-deployment-painfully-slow/110272/1 "2007-07-24T20:39:45Z")

</div>

We have a 3 environment deployment setup to Dev, Stage, and Production  
boxes. For some reason, the production deployment is painfully slow.  
It  
hangs on the ‘subversion is asking for a password’ line for about 4  
minutes,  
then finally prompts… I’m running it in verbose mode but I don’t have  
any  
indication as to why this is taking so long… any ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![blinking\_bear](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Post date:** [July 24, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/cap-deployment-painfully-slow/110272/2 "2007-07-24T21:50:21Z")

</div>

blinking bear wrote:

> We have a 3 environment deployment setup to Dev, Stage, and Production  
> boxes. For some reason, the production deployment is painfully slow.  
> It  
> hangs on the ‘subversion is asking for a password’ line for about 4  
> minutes,  
> then finally prompts… I’m running it in verbose mode but I don’t have  
> any  
> indication as to why this is taking so long… any ideas?
> 
> Thanks

Could be DNS lookups that timeout. Does a normal ssh take long to the  
box? The process is probably waiting for something and eventually times  
out. How do you check out your code from the svn repository? This could  
take a long time when (reverse) DNS isn’t setup correctly.

---

<div class="post-metadata">

**Author:** ![blinking\_bear](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Post date:** [July 25, 2007, 1:21am UTC](https://www.ruby-forum.com/t/cap-deployment-painfully-slow/110272/3 "2007-07-25T01:21:06Z")

</div>

Try logging in to each machine with the user account you use for svn and  
then doing

svn ls path\_to\_your\_repository

This should prompt you for the password and then cache it. The  
deployment  
shouldn’t ask for it again next time.

That’s how we do it.

One other thing I do that helps is to ensure I’m using svn export  
instead of  
svn checkout.
