Dev

Schedule static page deploys on Netlify with IFTTT

This blog is a static website hosted on Netlify. As static site builder, I use the awesome Hugo, which is written in Go and amazingly fast. This page with currently more than 300 pages build in less than 500ms. But as the name “static” suggest - just static files that are served by a simple HTTP server - it doesn’t have a dynamic backend with the option to schedule posts, so scheduling isn’t possible the same way it is with systems like WordPress.

Exploring Go

A few months ago, I tried to learn Go. I did it just out of curiosity and because I heard many great things about this programming language. I also use much software, which is written in Go, like the generator for my websites (Hugo), Git server (Gitea), feed reader (Miniflux) or Docker. All are written in Go and have in common, that they have an incredible performance and are really easy to setup, because it’s possible to compile everything to a single statically linked executable.

Automatically Backup Docker Volumes

For my server needs, I rent a small VPS at Hetzner Cloud. It has two vCPUs, 4 GB of RAM, 40 GB of storage and I can use 20 TB of outgoing traffic each month (the incoming traffic is free and unlimited) and it only costs me 5,83€ each month, a lot cheaper than DigitalOcean, Linode or even AWS. In addition to the pure VPS, Hetzner offers a backup service. For 20% of the price of the VPS (for me it’s ~1,17€), you get 7 backup slots and can configure automatic daily backups of your server.

Netlify isn't as bad as I thought it would be

When I wrote, that I switched from a Ghost-based blog to a static site generated by Hugo, I made the following statement: I don’t use a service like GitHub pages or Netlify, because using my own server really guarantees me full control. But it would be a good alternative, if you don’t want to manage your own server. Netlify can also cover the automatic deploy process. Since then I switched all my blogs from Ghost to Hugo, but also started using Netlify for the hosting of my static sites.