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: Get-ChildItem

List, search/find files and directories with Get-ChildItem cmdlet.

Linux command: Check Current Shell

What is your current shell ?

Java: Free Online Courses

The Java™ Tutorials by Oracle The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". https://docs.oracle.com/javase/tutorial/ Learn to Program in Java at edX.ogr Get started on the path to becoming a software engineer by learning core coding skills in Java—one of the most popular programming languages. https://www.edx.org/course/learn-to-program-in-java-0 Java Tutorial by javapoint.com https://www.javatpoint.com/java-tutorial Java Tutorial by SoloLearn.com I love SoloLearn because I can learn Java - and other popular programming languages - anywhere, any time on your mobile devices. https://www.sololearn.com/Course/Java/ Java on Azure https://docs.microsoft.com/en-us/learn/paths/java-on-azure/