Ghost Blog - How to Update

Ghost Blog - How to Update

The first step is to make a backup of the blog in case things break.

I copied the ghost folder to a backup folder:

cp -r /var/www/ghost-blog /home/ghost-blog/backup/2024-02-25-12-00/

Also, exported a backup with the frontend option at :

We are now ready for the update.

1) Let's check our blog version.

2) We can now run ghost check-update to check for new versions.

3) A new minor version is available, so let's upgrade. Before upgrading we need to install the latest ghost-cli.

npm install -g ghost-cli@latest

Follow the steps throw if the upgrade complains of outdated packages and run the above command again to update your ghost-cli

In my recent upgrade, my node and npm packaged were outdated.

First, node was upgraded to the ghost supported version with the commands bellow:

sudo npm install -g n
sudo n 18.17.0

Second, npm was upgraded.

sudo npm install -g npm@10.4.0
npm -version
10.4.0

If the ghost `systemd ` module is changed make sure to reload systemd.

sudo systemctl daemon-reload

4) Finally, upgrade your ghost blog instance.

ghost update 5.79.4
ghost ls
ghost start

Resources

How to Update Node.js to the Latest Version (Feb. 2024)
Boasting a combined 54 years of hosting experience, our experts have built and launched everything from vertical-leading sites with millions of visits to small-scale personal projects. Today, we collectively spend $1000s monthly on hosting services and personally operate numerous hosting accounts. For the do’s and dont’s of hosting, look no further than HostingAdvice.com.
How To Update Node.js To Latest Version On Linux, macOS, & Windows
There are several easy & quick ways of upgrading Node.js. Learn how to update Node.js on different OS and improve your development experience.
How to install and update Nodejs on Ubuntu 20.04 LTS
Using Command
Ghost won’t start. Mismatched Node version (?) after mysql issue
The node mismatch error has come up a couple of times recently, so let’s look at how it’s actually calculated. There are a couple places where the message could be generated. One reference to it is here: That’s part of Ghost Doctor. In that case, it appears to be parsing the path to node out of the systemd service file, and then calls that copy of Node with --version to check the version. You can check this version yourself using: grep node /lib/systemd/system/*ghost* On my Linux server,…
godofredoninja/Mapache
You can use the theme Mapache for ghost in: Blog - Magazine - Landing page - Personal page - Photographers. and in many other things - godofredoninja/Mapache