Updating Ghost

Ghost CMS currently lacks a self-updater. If you're like me and run your own ghost installation on a linux server, then you have to manually trigger updates through the command line. It's definitely a lot easier than before where we had to move folders around, overwrite specific files, and hope we made a backup if something broke. Now the updater tool does all this for us. We just need to make sure the cli tools are up to date.

sudo npm i -g ghost-cli@latest
ghost update

Make sure ghost update is run in the correct directory. My bash alias cds over to the directory ghost is installed in before running the other two commands in order.

This is my alias file

# update ghost alias
alias updateg='cd /var/www/ghost && sudo npm i -g ghost-cli@latest && ghost update'