The blog of freelance Designer & Developer, David Rice.
01 Aug 2006
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
-
Make a backup copy of your database ( because we all know that shit happens )
-
Login to your server via ssh
-
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 -
Copy database.yml.example to database.yml and add the right login info
-
Change the shebang lines for your dispatcher scripts
-
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)
-
Stop the ruby processes (and server if appropriate)
-
run the command
rake environment RAILS_ENV=production migrate -
Move the current directory to a backup and then change the name of the freshly checked out copy to what you had before.
-
Restart your server and hey presto! you should be up and running.
- email me@davidjrice.co.uk
- phone me on +44 7590 538 303
If you need help with the Design, Build, Management, Hosting or Support of your project do get in touch, I'd love to hear from you!
Recently
- 22 Apr » HTML5 Validator.nu ruby gem
- 28 Sep » ActiveMerchant Support for Realex
- 09 Sep » Getting Real with Realex
- 04 Sep » Back in Black
- 25 Nov » Rails Session Storage Cookie Vs Active Record
- 06 Jun » Get Exceptional
- 21 Apr » git and github ftw
- 19 Apr » Co-Working Belfast, Put Your Money Where Your Mouth Is
- 28 Mar » Co-working Belfast Plan
- 26 Feb » Do Not Buy an Apple AirPort Extreme Base Station, They Crash and Burn
- 13 Feb » Ssh, Presentation in Progress