Tech/Server Notes

From Stumptown Syndicate
< Tech
Revision as of 18:32, 14 June 2013 by Reid (Talk | contribs) (Created page with " == Upgrading WordPress == We handle WordPress upgrades for the Syndicate network using svn. <code><pre> cd /var/www/stumptownsyndicate.org/public/wordpress # Get the mysql...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Upgrading WordPress

We handle WordPress upgrades for the Syndicate network using svn.

cd /var/www/stumptownsyndicate.org/public/wordpress

# Get the mysql credentials
head -n 30 wp-config.php

# Dump a backup of the WP database (you'll be prompted for the password that you just displayed)
mysqldump -u syndicate -p syndicate > ~/wordpress_backup_`date +%s`.sql

# Determine the current version of wordpress by looking at the URL provided by:
svn info

# Switch to the new version, replacing x.x.x with the desired version number
svn switch http://core.svn.wordpress.org/tags/x.x.x