Global Reset

Engineer, Objectivist, and Father

Updated Typo to Latest Edge

Posted by shughes Tue, 08 Nov 2005 14:34:00 GMT

Last night, I updated this Typo install to the latest svn trunk (rev 725). I had been running at rev 586 for a while now, but I was hesitant to upgrade as I noticed there were a few database changes. Turns out that, thanks to Rails Migrations, the database changes were simple (for me anyways, maybe not for the author of the migrations). While I was at it, I went ahead and updated Typo to run the latest Edge Rails also. Here’s the procedure I used on Dreamhost to install these:

# Get Latest Typo
$ svn co svn://leetsoft.com/typo/trunk typo-edge
# Get Latest Rails
$ cd typo-edge/vendor
$ svn co http://dev.rubyonrails.org/svn/rails/trunk rails
$ cd ..
$ rake update_javascripts
$ rake add_new_scripts
# Copy My Typo Configuration
$ cp ../{old-typo}/config/database.yml config/database.yml
$ cp -r ../{old-typo}/themes/globalreset themes/globalreset
$ vi config/environment.rb #forced RAILS_ENV='production'
# Update link I use to point to a version of Typo
# My setup expects web root at this link/public
$ rm typo
$ ln -s typo-edge typo

Then I opened my browser and navigated to /admin and was immediately prompted with a list of necessary Database Migrations, which must be performed on my existing database to be compatible with this version of Typo. I clicked affirmatively, and after a few seconds I was running the latest and greatest Rails and Typo.

Make sure you backup your database before attempting this. The web-based phpMyAdmin that Dreamhost provides is suitable for this. I’ve seen a couple of users report on the Typo-ML that they had some migration issues. I don’t know if those issues ended up in a wedged database or not, but better safe than sorry.

Posted in | 4 comments |

Comments

Leave a comment

  1. Avatar
    alba
    21 days later:

    i came across this site from google. i’m intersested in installing typo on my dreamhost site.

    are there any good tutorials on doing this specifically for dreamhost? i mean for laymen like myself?

    nice site by the way!

  2. Avatar
    Scott Hughes
    23 days later:

    Hey Alba,

    There is a good tutorial on the Typo Trac site.

    http://typo.leetsoft.com/trac/wiki/DreamHost

    It seems kind of intimidating if you’ve never setup a rails app before, but you’ll quickly find that it’s really very simple.

  3. Avatar
    raja
    about 1 month later:

    Thanks for the quick overview. It was what I expected except I am curious how you discovered the two rake lines for updating/adding new scripts.

    Any insight would be appreciated.

  4. Avatar
    Scott Hughes
    about 1 month later:

    Raja,

    I think I originally found it onone of the many Ruby/RubyOnRails blogs that I subscribe to… But I referenced this page when I grabbed the Rails trunk:

    http://weblog.rubyonrails.com/articles/2005/11/07/rails-1-0-rc4-0-14-3-its-the-final-countdown

Leave a comment