Hello 👋
It has been years since I have wrote my last post about why we love and hate the CLI (EPISODE 014 - CL… WHY?) And I would like to get back in to posting on a regular basis.
I have changed role from a Infrastructre project engineer to a Linux Engineer, and I am getting to play with loads of new technologies so I would like to share some stuff I have learned and Issues I have come accross in the hope it will help someone else.
The Goal
I have been looking to automate posting to twitter about my new blog posts, and I have been looking at the Ghost intergrations.
The goal is simple:
- Create a new post on any of my blogs
- Publish It
- Post to Twitter that I have a new post along with the Title and URL.
Zappier looked to be the way to go, but I thought, I have a IFTTT Pro account that I pay like $2 for per month so why not use that.
Im going to start by saying Ghost as a platform has been great in many ways. Its been easy to use, navigate and is full of cool features. With the release of Ghost 5.0 last year I have reluctantly updated from the 4.X versions. A bit of back story, I run this site on a very small cloud vm andI use docker and docker compose to run it. With 4.X my compose file looks something like this:
Background
So I have been running 4 Raspberry Pi 3B as docker hosts for my infrastructure for a few years, they run my internal DNS ( PiHole ) , And other services that I use like VPN.
I wanted to have all the docker volumes on an NFS and then get the hosts to use that as a mounted file system. This way I could move containers to different hosts and they could just pick up from where they left off as the data is in all one place.
Migrating from ghost to gitbased blog
I enjoy writing although this blog shows not that much considering how often a new post is put out.
Apart from ‘LIFE’ taking up so much time , finding time to write is low down on the priority of things,
but I would like to post more frequently and to do this im going to need a way to make it easier to post
just using markdown
and static websites. On top of this, the version of Ghost I was running is giving me
warnings now as its out of date and wants an update but this involves backing up everything and recreating
the docker to include a seperate database as they are no longer supporting sqlite as a backend. This
has given me the final push to migrate.