Feb 3 2006

Effortless WordPress Upgrade

Woke up this morning, and found WordPress, the software that powers this blog, released a bug fix version 2.0.1. So I logged onto my DreamHost account via SSH, and

  1. $ wget http://wordpress.org/latest.tar.gz
  2. $ tar zxvf latest.tar.gz
  3. $ cd wordpress/
  4. $ tar cf - . | (cd ~/scott.yang.id.au; tar xvf -)
  5. $ wget -O - http://scott.yang.id.au/wp-admin/upgrade.php?step=1 > /dev/null

Done! Software upgraded, and it is happy serving web pages again. Repeat step 4 and 5 for all my other WordPress running sites. Way too easy. It is what I call an effortless upgrade..

I wondered when will other agile web development framework (RoR, Django, etc) catch up.

7 Comments

  1. Ozh on 3 Feb 2006 at 8:47 pm #

    Eh, that might be just what I was looking for last night. Could you explain line 4 a bit so that I’m sure it does what I’m thinking it’s doing ?

  2. necrodome on 4 Feb 2006 at 8:21 am #

    > I wondered when will other agile web development framework (RoR, Django, etc) > catch up.

    so you are comparing a web application to web dev _frameworks_. nice! and who said deployment is hard with them? i am using typo (a blog engine written in RoR) and this is how i update it:

    1- svn co http://url/for/typo/svn
    2- rake migrate

  3. Pingback: Upgrade Wordpress to 2.0.1 at Chris is Lazy

  4. Pingback: Chris is Lazy

  5. scotty on 5 Feb 2006 at 5:24 pm #

    Ozh,

    Line 4 just tar up the entire directory from inside “wordpress”, pipe into another tar that is inside my site’s root directory, and unpack the files into it. Good thing about tar is that it perserve file permission and timestamps.

  6. scotty on 5 Feb 2006 at 5:43 pm #

    Necrodome,

    Indeed that I sounded like comparing a web framework with an application. However what I actually meant is web applications developed by those new-ish web frameworks.

    That’s good that you can update your Typo installation via subversion, and great that you can do database upgrade with active record — and that’s once you already have your RoR/Typo installed and set up properly, which is usually the complicated bit in a shared hosting environment.

  7. Ozh on 11 Jan 2007 at 6:21 am #

    Just to tell thank you again, I’m still coming back here to this post every time a new WP version rolls out :)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>