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

You are fired unless ...

...unless "The illiterate of the 21st century will not be those who cannot read and write, but those who cannot Learn , Unlearn , and Relearn ." -  Alvin Toffler

macOS: How to capture screen

Shortcut keys to capture screen in macOS