DAVID RICE

Software Developer

+44 (0) 7590 538 303

21 Ormeau Avenue
Belfast, Northern Ireland
BT2 8HD

Hello from Typo 4.0!

01 Aug 2006 {View Comments}

Just upgraded to the recently released version of Typo that blogging engine I use, written in Ruby on Rails of course. Quite a swift and painless process, thanks to some prior preparation! While I was upgrading I couldn’t help think I should possibly turn this into a capistrano recipe it would speed up upgrading to the next version. So maybe more on that later.

Quick guide for upgrading from typo 2.6 to 4.0

  1. Make a backup copy of your database ( because we all know that shit happens )

  2. Login to your server via ssh

  3. Check out the latest version of typo to wherever you stash your sites

     svn co svn://typosphere.org/typo/tags/release\_4\_0\_0 typo
  4. Copy database.yml.example to database.yml and add the right login info

  5. Change the shebang lines for your dispatcher scripts

  6. Copy your custom theme from the current typo dirctory to this one. (I like to keep my theme in a repository of it’s own so i can easily check it out on a new install)

  7. Stop the ruby processes (and server if appropriate)

  8. run the command

       rake environment RAILS_ENV=production migrate
  9. Move the current directory to a backup and then change the name of the freshly checked out copy to what you had before.

  10. Restart your server and hey presto! you should be up and running.

«