Tech/WordPress Upgrade

From Stumptown Syndicate
Jump to: navigation, search

Upgrading WordPress

We handle WordPress upgrades for the Syndicate network using wp-cli

cd /var/www/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

# Upgrade the wordpress installation
wp core update

Once you've done this, you'll want to visit the Update Network page to complete the upgrade.