Social Media Posts after Migrating from WordPress to Hugo Static Pages

I posted recently on my experience moving to Hugo from WordPress. One feature lost in the move were the Wordpress plugins used to automatically post to Twitter and LinkedIn when a new blog post was created. I always found this very useful, so looked or a way to replicate this functionality for static pages. The solution I ended up with was Azure Logic Apps. I created a Logic App with a scheduled triggered that checked my blogs’s RSS feed every 30 minutes....

July 7, 2022 · 1 min · Richard Fennell

Migrating from WordPress to Hugo Static Pages

Background Over the years, the Black Marble blog server has been hosted on many platforms. It’s previous incarnation was WordPress, running as a network of sites with an aggregated feed. Of late we had found this slow to serve the first page (due to website start-up time) and there was the constant need to keep the instance patched. The time had come for a new solutions, and we picked Hugo Static Pages....

July 1, 2022 · 3 min · Richard Fennell

Don't skimp on resources for GHES for demo instances

I wanted to have a look at some GitHub Enterprise Server (GHES) upgrade scenarios so decided to create a quick GHES install on my local test Hyper-V instance. Due to me skimping on resources, and making a typo, creating this instance was much harder than it should have been. The first issue was I gave it a tiny data disk, this was down to me making a typo in my GB to Bytes conversion when specifying the size....

June 16, 2022 · 2 min · Richard Fennell

Fix for cannot 'TypeError: Cannot read property' when Dependabot submits a PR to upgrade a Jest Module

GitHub’s Dependabot is a great tool to help keep your dependencies up to date, and most of the time the PR it generates just merges without a problem. However, sometimes there are issues with other related dependencies. This was the case with a recent PR to update jest-circus to 28.x. The PR failed with the error TypeError: Cannot read property ’enableGlobally’ of undefined at jestAdapter (node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:39:25) at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13) at runJest (node_modules/@jest/core/build/runJest....

May 19, 2022 · 1 min · Richard Fennell

Fix for Azure DevOps deployment to an environment stuck in "Job is pending" state

Issue I had an Azure DevOps YAML based pipeline that had been working but was now getting stuck with the message “Job is pending…” when trying to start a stage in which there is a deployment to an environment. Looking at the logs and Azure DevOps UI it was not obvious what the issue was. Solution Turns out it was due to environment checks and approvals. There was a branch policy on the environment....

April 7, 2022 · 1 min · Richard Fennell