# Password management / SVN / Capistrano

**URL:** <https://www.ruby-forum.com/t/password-management-svn-capistrano/111629>\
**Category:** Rails\
**Created:** [August 9, 2007, 10:34am UTC](https://www.ruby-forum.com/t/password-management-svn-capistrano/111629 "2007-08-09T10:34:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![micktaiwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Post date:** [August 9, 2007, 10:34am UTC](https://www.ruby-forum.com/t/password-management-svn-capistrano/111629/1 "2007-08-09T10:34:26Z")

</div>

Hi,

SVN

I have recently put my project on Google Code.  
I didn’t want to put the database.yml in the SVN repository, as it  
contains my production server db password.  
I put a “database.yml.template” on the public svn and kept a non  
managed customized local file “database.yml”.  
I’d like to hear how you manage that issue when putting your code on a  
public SVN repository ?

Capistrano

Now I am trying Capistrano.  
Capistrano is seems to not doing a (incremental) update, but a full  
checkout of the site when deploying a new version. The problem is that  
it checks out the database.yml.template file.  
What task I need to change so after the full checkout, the correct  
database.yml is copied from a backup ?

Thanks for your pointers,  
Mickael.

---

<div class="post-metadata">

**Author:** ![micktaiwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Post date:** [August 9, 2007, 10:53am UTC](https://www.ruby-forum.com/t/password-management-svn-capistrano/111629/2 "2007-08-09T10:53:31Z")

</div>

Hi Mickael,

> I put a “database.yml.template” on the public svn and kept a non  
> managed customized local file “database.yml”.  
> I’d like to hear how you manage that issue when putting your code on a  
> public SVN repository ?

Seems like the Right Way.

> Capistrano is seems to not doing a (incremental) update, but a full  
> checkout of the site when deploying a new version. The problem is that  
> it checks out the database.yml.template file.  
> What task I need to change so after the full checkout, the correct  
> database.yml is copied from a backup ?

Check out:  
[http://www.jvoorhis.com/articles/2006/07/07/managing-database-yml-with-capistrano](http://www.jvoorhis.com/articles/2006/07/07/managing-database-yml-with-capistrano)

–  
Roderick van Domburg

> **[De domeinnaam Nedforce.nl is te koop.](http://www.nedforce.nl)**
>
> Deze mooie domeinnaam kan al over een paar minuten van jou zijn. Betalen gaat eenvoudig en vertrouwd via iDEAL. Direct na de betaling ontvang je de verhuiscode per e-mail en kun je aan de slag.

---

<div class="post-metadata">

**Author:** ![micktaiwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Post date:** [August 9, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/password-management-svn-capistrano/111629/3 "2007-08-09T12:03:35Z")

</div>

Great ! Thanks.  
Mickael.

On Aug 9, 10:53 am, Roderick van Domburg \<rails-mailing-l…@andreas-
