fdv / typo watch
public
Description: Typo is the oldest and most powerful Ruby on Rails blogware, providing custom templates, powerful drag and drop plugins API, advanced SEO capabilities, XMLRPC API and many more.
Home | Edit | New

UPGRADING TO TYPO 5.3

BEFORE UPGRADING

Pre migration steps are divided into 2 categories: things you should do, and things you must do.

You should make a backup of your current blog, either using a file transfer software or an archiver like zip or tar.

You should make a backup of your database, using either mysqldump, pgdump or phpmyadmin, whichever you feel safe with.

If you’re using a pre 5.0 version, you should remove all the following sidebars before migrating:

  • AIM presence
  • Audioscrobbler
  • Backpack
  • Delicious
  • Flickr
  • 43 things
  • 43 places
  • Magnolia
  • Recent comments
  • Tada
  • Upcoming
  • Xbox

These sidebars have been removed from Typo core at 5.0 and are now hosted on a separate repository. You can also migrate, then reinstall those plugins before trying to access your blog frontend or admin.

If you’re using a Typo version priori to 5.1, you must manually remove the lib directory inside your Typo install.

If you’re using a third party theme, you’ll have to do some changes to your template as well. This is explained later.

UPGRADING

Upgrading should be a really easy process, depending on how you installed Typo at first.

UPGRADING WITH TYPO INSTALLER FROM TYPO 2.0 to 5.0

Automagically upgrading Typo 2.0 to 5.0 using Typo installer is not possible, but you can catch the train anyway, it will just be a little harder. By default Typo uses a MySQL database. If you want to use something else, check our installation documentation.

UPGRADING FILES

First, move your production Typo directory somewhere else:

$ mv typo_path old_typo

If you have root access to your host, launch:


$ sudo gem install typo
$ typo install typo_path

or

$ sudo gem update typo
$ typo install typo_path

If you don’t have root access, things are just a bit more complicated


$ export GEM_PATH=~/gems
$ gem install -i ~/gems typo
$ ~/gems/bin/typo install typo_path

or


$ export GEM_PATH=~/gems
$ gem update -i ~/gems typo
$ ~/gems/bin/typo install typo_path

Then, move your theme (which is certainly no longer compatible), your database configuration and your uploaded files to your new blog:


$ mv old_typo/public/files/* typo_path/public/files
$ mv old_typo/themes/your_theme typo_path/themes/
$ mv old_typo/config/database.yml typo_path/config
$ mv old_typo/config/mail.yml typo_path/config

The mail.yml is copy only if define. Otherwise, don’t copy it.

Ensure all your typo files have the good perms, then restart your Typo instance.

UPGRADING DATABASE

Log into your Typo admin using your favourite web browser. You’ll access the database migration page. Just click on the “migrate” button.

If something goes wrong, go back to your terminal, and run:


$ cd typo_path
$ rake RAILS_ENV=production db:migrate

If things really go wrong, then please ask for help on the Typo mailing list or on IRC #typo@irc.freenode.net

UPGRADING WITH TYPO INSTALLER FROM TYPO 5.0 and later

UPGRADING FILES

First, install or update your Typo gem.

If you have root access to your host, launch:


$ sudo gem install typo
$ typo install typo_path

or


$ sudo gem update typo
$ typo install typo_path

If you don’t have root access, things are just a bit more complicated


$ export GEM_PATH=~/gems
$ gem install -i ~/gems typo
$ ~/gems/bin/typo install typo_path

or


$ export GEM_PATH=~/gems
$ gem update -i ~/gems typo
$ ~/gems/bin/typo install /some/path

Ensure all your Typo files have the good perms, then restart your Typo instance.

UPGRADING DATABASE

Log into your Typo admin using your favourite web browser. You’ll access the database migration page. Just click on the “migrate” button.

If something goes wrong, go back to your terminal, and run:


$ cd typo_path
$ rake RAILS_ENV=production db:migrate

If things really go wrong, then please ask for help on the Typo mailing list or on IRC #typo@irc.freenode.net

UPGRADING YOUR THEME

UPGRADING FROM TYPO 5.2

  • In articles/comment_box.html.erb use @article.comment_url instead of commentspath(@article)
  • all link preview_new_comment_path(@article) are changed to @article.preview_comment_url
  • all link url_for formatted_article_path(@article, :rss) are changed to @article.feed_url(:rss)
  • all link formatted_article_url(@article, @format) are changed to @article.permalink_by_format(@format)
  • The classical search has moved to sidebar. So if you want, you can delete the render of shared/search in your layout and use the search_sidebar instead.
  • If you want to keep the classical search, for instance to put it somewhere else than in the sidebar, replace in theme/views/shared_search.html.erb { :controller => 'live', :action => 'search' } by live_search_articles_url.
Last edited by shingara, Mon Mar 30 08:31:43 -0700 2009
Home | Edit | New
Versions: