When I moved all my stuff from Dreamhost to this VPS in slicehost, one thing that stopped working was the blog before this one. I started that one at alcides.ideias3.com and later moved to alcidesfonseca.com. It was my 7th or so blog, and as all the other ones, all hand-coded by me.
I wrote it as a demo project for my micro-web-framework pungi including features like cgi helpers, templates, html helpers and a ORM. I don’t know why (and I really did my best to figure it out) but it doesn’t work on the new box. Well, if I run python index.py
in the shell, it prints the right html, but not via Apache.
Well, I wanted that archive online, so I did a little hack just to view the content using Sinatra (Ruby). I migrated the MySQL database to sqlite3 using a script I tweaked. The database schema was already defined, and I didn’t want to be changing it, so I needed a ORM that would fit just nice. DataMapper did the thing just well, and most of my pungi conventions applied to DM except for N-N relationships where I had plural nouns for foreign keys. The solution was really trivial, just override the foreign-key child id and it was working almost out of the box.
Thanks to simple things, I was able to get my old blog back online as an archive.