I'm Publishing with Git!
Published: 2023-10-26 11:08 PM
Category: Code | Tags: blog, publishing, workflow
One of my goals this month was to make my publishing more flexible. I'm finally publising with a git hook, rebuilding this site on the server (8 seconds) instead of slowly building it on a Chromebook (35+ seconds).
AndiS put me on the right track back at the start of the month. Tonight, with a little more help from Brandon and a bunch of Googling, I got it working.
I'm using a pre-receive hook based on a 2014 post from Jason Stitt because the console will display the progress and fail in case something goes wrong instead of publishing a busted site.
Now that I have this all centrallized on my VPS, I can pull the repo on to any machine and pick up with the writing.
Comments