Title: so long typo (and thanks for all the timeouts)
Date: June 8, 2007
Timestamp: 1181350860
Author: sjs
Tags: mephisto, typo
----
Well for just over a year Typo ran the show. I thought I had worked out most of the kinks with Typo and Dreamhost but the latest problem I ran into was pretty major. I couldn't post new articles. If the stars aligned perfectly and I sacrificed baby animals and virgins, every now and then I could get it to work. Ok, all I really had to do was refresh several dozen times, waiting 1 minute for it to timeout every time, but it sucked nonetheless.
Recently I had looked at converting Typo to Mephisto and it seemed pretty painless. I installed Mephisto and followed whatever instructions I found via Google and it all just worked, with one caveat. The Typo converter for Mephisto only supports Typo's schema version 56, while my Typo schema was at version 61. Rather than migrate backwards I brought Mephisto's Typo converter up to date instead. If you're interested, download the patch. The patch is relative to vendor/plugins, so patch accordingly.
After running that code snippet to fix my tags, I decided to completely ditch categories in favour of tags. I tagged each new Mephisto article with a tag for each Typo category it had previously belonged to. I fired up RAILS_ENV=production script/console and typed something similar to the following:
1 2 3 4 5 6 7 |
require 'converters/base' require 'converters/typo' articles = Typo::Article.find(:all).map {|a| [a, Article.find_by_permalink(a.permalink)] } articles.each do |ta, ma| next if ma.nil? ma.tags << Tag.find_or_create(ta.categories.map(&:name)) end |