Search

Enter a search word or two and press return to see the search results.

Who am I?

Hi, I’m Graeme and these are my notes, from my messy desk. I started this blog because Google proved to be more useful at finding content than anything else I’ve used.

So I started adding my own content in the hopes that Google would index it and allow me to find things again in the future.

It works.

You can find out more about me here, and you should follow me on Twitter here.

Keeping up

You can automatically receive new content here by subscribing to the “Blog RSS” (link below). This is the easiest way to keep up with what I write here.  See this BBC article for a good introduction on RSS and keeping up with the goings on of the Internet more easily.

« Nekkidness | Main | Rails: Normalizing data in the model »
Wednesday
05Apr2006

Automating the creation of rails apps in svn

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?

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (2)

Any info on how to use this? Maybe a tutorial I could use?

April 5, 2006 | Unregistered CommenterJordan Arentsen

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.

April 6, 2006 | Unregistered CommenterJeroen Janssen

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>