Skip to main content

Ghost CMS: Notes

ghost logo light

https://ghost.org/ — A Headless, Open-Source CMS.

Try ghost on AWS Lightsail

$ which ghost
/opt/bitnami/apps/ghost/bin/ghost

Ghost CLI

ghost ls
ghost log
ghost doctor
cd /opt/bitnami/ghost
sudo su ghost -c "ghost ls"
sudo su ghost -c "ghost version"
sudo su ghost -c "ghost doctor"
sudo su ghost -c "ghost backup"
sudo su ghost -c "ghost check-update"
sudo su ghost -c "ghost update"

Start/Stop services

sudo /opt/bitnami/ctlscript.sh status
sudo /opt/bitnami/ctlscript.sh start
sudo /opt/bitnami/ctlscript.sh stop
sudo /opt/bitnami/ctlscript.sh restart
$ pwd
/opt/bitnami/apps/ghost/htdocs
$ ghost version
Ghost-CLI version: 1.14.1
Ghost version: 3.28.0 (at /opt/bitnami/apps/ghost/htdocs)
$ ghost doctor
✔ Checking system Node.js version
ℹ Ensuring user is not logged in as ghost user [skipped]
ℹ Checking if logged in user is directory owner [skipped]
✔ Checking current folder permissions
✔ Checking for a MySQL installation
Instance is currently running
ℹ Validating config [skipped]
✔ Checking memory availability
✔ Checking binary dependencies
$ ghost check-update
New major version available: 4.6.4
$ ghost update
You are running an outdated version of Ghost-CLI.
It is recommended that you upgrade before continuing.
Run `npm install -g ghost-cli@latest` to upgrade.

✔ Checking system Node.js version
ℹ Ensuring user is not logged in as ghost user [skipped]
ℹ Checking if logged in user is directory owner [skipped]
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking for available migrations
✔ Checking for latest Ghost version
✖ Downloading and updating Ghost to v4.6.4
A SystemError occurred.

Message: Ghost v4.6.4 is not compatible with the current Node version.

Debug Information:
    OS: Debian GNU/Linux, v10
    Node Version: v10.22.0
    Ghost Version: 3.28.0
    Ghost-CLI Version: 1.14.1
    Environment: production
    Command: 'ghost update'

Try running ghost doctor to check your system for known issues.

You can always refer to https://ghost.org/docs/api/ghost-cli/ for troubleshooting.
$ sudo npm install -g ghost-cli@latest
sudo npm install -g ghost-cli@latest

> yarn@1.22.10 preinstall /opt/bitnami/nodejs/lib/node_modules/ghost-cli/node_modules/yarn
> :; (node ./preinstall.js > /dev/null 2>&1 || true)

/opt/bitnami/nodejs/bin/ghost -> /opt/bitnami/nodejs/lib/node_modules/ghost-cli/bin/ghost
+ ghost-cli@1.17.3
added 419 packages from 207 contributors in 18.742s

Admin panel: https://ipaddress/ghost/

Popular posts from this blog

Powershell: Enable Firewall Log

We sometimes need to enable Windows firewall's log to troubleshoot. Here is how.

Powershell: head and tail command

Use head or tail to skim the first or last 5 lines.

[Microsoft Outlook]: Set .pst and .ost files location with ForcePSTPath Registry Key

Set .pst and .ost files location with ForcePSTPath Registry Key The ForcePSTPath registry key is supported by Microsoft Outlook 2003 and later. In Microsoft Outlook 2003 and 2007, it applies to new profiles only. Microsoft Outlook 2013 and Outlook 2016 it applies to new accounts created in a profile. Microsoft Outlook 2013 saves .pst in   %userprofile%\Documents\Outlook Files folder by default. We can change that default setting by adding a new string registry key called ForcePSTPath and set the value to the folder that we want to save those files. Set Microsoft Outlook 2013 always save new .pst and .ost files to D:\Data\Mail folder OST file reached the maximum size The OST File Has Reached The Maximum Size