Tuning Ghost and Ubuntu on Raspberry Pi

Tuning Ghost and Ubuntu on Raspberry Pi

SD cards don't love alot of writes, so to reduce it some I turned off ghosts very promiscuous logging of all traffic to just report on errors only.

I added "level": "error",  to the config file at the root of the the Ghost install at /var/www/ghost so the logging entry looks like:

  "logging": {
    "level": "error",
    "transports": [
      "file",
      "stdout"
    ]

I also want to stop the logging of Ubuntu, which logs through the rsyslog daemon. I can stop it with this command: sudo systemctl stop rsyslog.service however on restart it will start back up again. To stop logging permentatly you need to use the following command: sudo systemctl disable rsyslog.service you can of course trade the disable for enable and start it back up if you need to debug again.

A SD card isn't the most reliable media in general even with logging turned off, so I backup my Ghost install nightly using the excellent Python tool and documentation by Ganapathy.

How to Setup Automatic Backup for your Ghost Blog
Save yourself from losing your blog data by setting up daily automated backups. Your backups will be saved on Google Drive with 30 revisions.

Ghost provides alot of other options as well with great  documentation here:

Configuration - Adapt your publication to suit your needs
Find out how to configure your Ghost publication or override Ghost’s default behaviour with robust config options, including mail, storage, scheduling and more!
Show Comments