Cowell Computer Consulting

SVN Setup for Rails Apps

Posted by Luke Cowell on September 22, 2008 at 04:08 PM

A lot of machine specific information doesn't need to go into the repository for your rails app. The following is taken from http://tuples.us/rails-guide/ which is largely taken from the ugly rails wiki.

svn remove log/*
svn commit -m 'removing all log files from subversion'
svn propset svn:ignore "*.log" log/
svn update log/
svn commit -m 'Ignoring all files in /log/ ending in .log'
svn remove tmp/*
svn commit -m 'removing all tmp files from subversion'
svn propset svn:ignore "*" tmp/
svn update tmp/
svn commit -m 'Ignoring all files in /tmp'
svn move config/database.yml config/database.yml.example
svn commit -m 'make database.yml template'
svn propset svn:ignore "database.yml" config/
svn update config/
svn commit -m 'ignoring database.yml'

It may also be a good idea to add:

svn remove db/*.sqlite3
svn propset svn:ignore "*.sqlite3" db/
svn update db
svn commit -m ' removing sqlite dbs from svn'
Tags: (none)
Hierarchy: previous, next