Wednesday, April 5, 2006 at 3:33PM
So I seem to create new rails apps often enough, whether for a new client, to demonstrate a particular feature, or just to try something out in a clean environment. And I *always* use Subversion to keep my source code (heck, I even keep my home directory in an svn repository!). So I've created a script which will setup the repository layout, add in rails, capistrano & exception\_notification, configure a few bits, ignore all the generated content, fix any stray shebang lines and create the appropriate databases. Just in case it's useful to any anybody else, you can grab it here: [new\_rails\_project.sh](/dist/new_rails_project.sh)
What have I missed configuring?
Reader Comments (2)
Any info on how to use this? Maybe a tutorial I could use?
Well,
After a short look at the source of the shell script, you (ofcourse) need to modify it before you can use it.
Change "svnroot" to the root path of your own subversion repository (line 23).
Note that you will end up with the following setup:
//trunk
//branches
//tags
So each project will have its own 'environment'.
Then, according to the 'usage':
new_rails_project.sh [path]
where is the name of the project you want to create in the subversion repository and [path] is an (optional) checkout path (if you want something different than the default "${HOME}/src/mine/svn").
Note that you probably also want to change the exception notifier email addresses.