Ghost 2.X to 3.X upgrade
The changes below were required to upgrade ghost from 2.X to 3.X
List ghost blogs
ghost ls
Stop all ghost blogs
ghost stop
Make sure npm and ghost-cli are upgraded
npm install -g npm
npm install -g ghost-cli@latest
:/usr/bin/ghost -> /usr/lib/node_modules/ghost-cli/bin/ghost
which ghost
:/usr/local/bin/ghost
Npm installs ghost to /usr/bin/ghost whereas the previous ghost cli was installed to /usr/local/bin/ghost
Remove /usr/local/bin/ghost
rm /usr/local/bin/ghost
Edit systemd startup script to reflect the updated ghost-cli location (/usr/bin/ghost)
vim /etc/systemd/system/ghost_(blog name)
edit ghost-cli location to /usr/bin/ghost
Reload systemctl to reflect the changes made to the startup file
systemctl daemon-reload
Update ghost
ghost update
start ghost
ghost start
Verify ghost_(blog name) was started successfully
systemctl ghost_(blog name) status
This should have started successfully and ghost should be fully upgraded now