Back Online

Posted by Mike on Tue, Jan 31, 2023

Over the past few months, I’ve been working on getting my website functional again as well as automating the thing for better maintainability. The old website was cobbled together, manually updated, and the theme was in disrepair.

As part of this effort, I’ve made some significant upgrades:

  1. Moved my registrar over to Cloudflare and am using Cloudflare caching to speed up data delivery
  2. Upgraded the host server running over at DigitalOcean
  3. All configuration and content is stored in source control (git) within my self-hosted GitLab server and is statically generated with Hugo
  4. Utilizing Docker and Ansible to deploy the site as infrastructure-as-code (IaC) and make it a bit more ephemeral where I can easily rebuild it
  5. I am using Gitlab CI/CD Runners to automatically run the Ansible provisioning playbooks to update content on my web host when I commit code
    1. I’m using a staging branch which will automatically deploy to a locally hosted web server so I can preview any changes.
    2. I’m using a main branch for production which will automatically deploy to my cloud hosted web server
  6. I developed a “pre-processor” Python script that will automatically import photos for galleries using custom Hugo Shortcodes. The images are then pushed to the server at build time so that images do not need to be stored in the git repository.

My expectation is to continue to use this website to post about any travel or other interesting things in my life.