Personal website using Middleman - some notes to self.
Branches:
source
: Source code for the Middleman website. Development here. A push to this branch deploys automatically to Cloudflare Pages.master
: Generated static website. If using GitHub Pages, the site would be served from here. Not used at the moment.
To make changes:
- Make changes in the
source
branch or a new local branch from there, eventually merged back tosource
. - Deployment:
- Push to GitHub's
source
branch. - Cloudflare Pages will detect the change and deploy automatically.
- In case of Terraform changes (e.g. DNS or security settings), Terraform Cloud will detect and apply those changes.
- Push to GitHub's
The site is proxied through Cloudflare. Everything infra related is managed with Terraform.
State is stored in Terraform Cloud and applied on a push to GitHub (default directory) if terrafrom plan
is successful.
Middleman blogging: https://middlemanapp.com/basics/blogging/
Generating articles: middleman article TITLE