WordPress 2.5 and SVN updating
I spent some time this weekend upgrading a bunch of WordPress sites to the newly released 2.5. So far, I’m completely impressed with this upgrade. The admin functions are truly improved and the overall design is beautiful and much more intuitive than the last admin panel. The dashboard alone is worth the upgrade.
We’ve also taken to a new approach for updating our WordPress sites. Since we’ve had a love affair recently with SVN for version control, I decided it made a lot more sense to use direct SVN checkouts of the tagged releases in the WordPress SVN, rather than FTP’ing the entire WordPress directory every time we get a minor release. So… here’s how we’ve got it set up:
- First, we run an SVN checkout to get the tagged release. This gives us all the core WordPress files.
- Next, we upload via FTP all the files that don’t belong to the core WordPress file structure. These files are:
- wp-config.php
- .htaccess
- our custom theme
- our plugins (besides akismet and hello)
- the wp-content/uploads folder
- Then we make sure that uploads folder is writeable by the server, and all should be well.
So with this setup, the next time that we need to upgrade the WordPress release, we can simply SSH into the server and run an svn switch command to the newest tagged release and it will update the changed files. Then we run the upgrade script and we’re there. Much easier when you have to update a dozen WordPress sites at once.
So. Anyone see any gotchas in this approach?

April 2nd, 2008 at 1:02 pm
sounds like a winner, i always underestimate the power of SVN and realize i loose hours of life dealing with http://ftp. going to have to try that on the next release.
btw, if you haven’t tried svnX yet for the mac people, it’s by-far the best gui i’ve found to take care of business and offer an easy option to work with checkouts. http://www.lachoseinteractive.net/en/community/subversion/svnx/
April 2nd, 2008 at 1:47 pm
I’ll have to give svnx another try. I use zigversion on the Mac mostly, but it pales in comparison to Tortoise for the PC.