Bustikated

Equal parts geeknobabble & jackassery

Quick & Dirty Rails Subversion

Posted by BM5k on January 27, 2008 at 01:26 AM

There’s a good how-to over at the RoR Wiki but I’m going to repost a quick & dirty reference here, mostly for my own benefit the next time I go through this.

The point is to ignore sensitive info in the database.yml file, and the ever-changing log & tmp directories. I’m no SVN guru, so feel free to point out flaws in this system.

svn remove log/*
svn propset svn:ignore "*.log" log/
svn update log/
svn remove tmp/*
svn propset svn:ignore "*" tmp/
svn update tmp/
svn move config/database.yml config/database.example
svn propset svn:ignore "database.yml" config/
svn update config/
svn commit -m "Setup Rails Directory Structure."
Hierarchy: previous, next

Comments

There are 0 comments on this post. Post yours →

Post a comment

Required fields in bold.