Update Ghost

Backup Required

Before proceeding, make sure that the site is backed up.

You will need to SSH into our VM to perform the following maintenance. If you do not know how to do so, read the accessing the VM page first.

Make sure that NPM and the Ghost CLI are up to date:

npm install -g npm
npm install -g ghost-cli@latest

Before proceeding, make sure to switch over to the Ghost manager account, and move to our main Ghost directory (commands should not be run as root):

sudo -i -u ghost-mgr
cd /var/www/ghost

Then, follow the Ghost upgrade docs. Because we operate in a low memory environment, it's possible that Ghost might show an error saying that it can not be upgraded due to insufficient memory. To address this, reboot the VM via

sudo reboot

and then re-SSH into the VM.

Info

This will cause the VM to power cycle, which will take the site offline for a few seconds.