Initial commit: Hugo site with Caddy infra and deploy tooling

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Louis Simoneau
2026-04-08 19:45:03 +10:00
commit b090231557
14 changed files with 770 additions and 0 deletions

26
Makefile Normal file
View File

@@ -0,0 +1,26 @@
.PHONY: build serve deploy ssh setup
# Load .env if it exists
-include .env
export
DEPLOY_USER := deploy
MONOTROPE_HOST ?=
build:
cd site && hugo --minify
serve:
cd site && hugo server --buildDrafts --disableFastRender
deploy:
@test -n "$(MONOTROPE_HOST)" || (echo "Error: MONOTROPE_HOST is not set"; exit 1)
bash deploy.sh
ssh:
@test -n "$(MONOTROPE_HOST)" || (echo "Error: MONOTROPE_HOST is not set"; exit 1)
ssh $(DEPLOY_USER)@$(MONOTROPE_HOST)
setup:
@test -n "$(MONOTROPE_HOST)" || (echo "Error: MONOTROPE_HOST is not set"; exit 1)
ansible-playbook -i "$(MONOTROPE_HOST)," -u root infra/ansible/playbook.yml