Today I’m working on setting up my blog (deployment, hosting, etc) and thought you might like to see my approach at a high level. My approach isn’t the easiest from a technical perspective, but it gives me the flexibility I want, and hosting costs should be quite low.
gatsby develop) so that I can run the blog locally and see changes in my browser as I write content. The static web files (e.g. html, js) that we need to deploy to a web server can be created using
Every change to the blog is committed to my Github repository, and I use Github Actions to automatically run
gatsby build, deploy the blog, and invalidate the CDN (Content Delivery Network) cache so readers visiting the blog will get the latest version rather than a stale version.
The blog is hosted in an AWS (Amazon Web Services) S3 Bucket with AWS Route 53 handling the DNS (Domain Name System) lookup for
codeoftheprogrammer.com. AWS CloudFront handles TLS/SSL certificate and CDN caching.
codeoftheprogrammer.com domain name is registered with Namecheap.com. I’ve had good experience with their support, and their prices are competitive.
If you would like me to elaborate on any of these topics, contact me (links below) and let me know!