Static site development

When developing a static site, or editing an existing one, its a bitch to try and remember things like relative and absolute paths, etc etc. I didn’t want to have to mess with that and I certainly didn’t want the hassle of setting up apache or lighty just to serve files from the directory I had mirrored the site.

So, Ruby to the rescue! 2 minutes later and I had this serving my files for me:

Just run it in the directory that has your files in, or call it like:

and voila, instant server.

I don’t know how people live without this stuff.