subversion

Howto ignore the Rails log directory so that Subversion and Capistrano work together

I’ve read numerous posts about ignoring the Rails log directory but often they only mention ignoring the log contents of the directory. This is because if the log directory does not exist Rails will refuse to start until it is created. That may be a preferred way to work until one starts using Capistrano. Capistrano will create a symbolic link in place of the log directory and that will screw up subversion which will give an error like, “svn: Expected 'log' to be a directory but found a file.” So the solution to make Subversion work with Capistrano is to remove the log directory and ignore it and then create it when necessary after a checkout. Here are the specifics of how I did this for one project.

Syndicate content
Creative Commons License Except where otherwise noted, content on this site is licensed under a Creative Commons by-nc-sa 3.0 License