- Add Hermes (Nous Research LLM agent) with Telegram gateway, Ansible provisioning, and Makefile targets - Self-host JetBrains Mono and Spectral fonts (remove Google Fonts) - Add "An Experiment in Self-Hosting" blog post - Update CLAUDE.md with high-level server overview Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
51 lines
1.6 KiB
Makefile
51 lines
1.6 KiB
Makefile
.PHONY: build serve deploy ssh setup miniflux gitea goatcounter hermes hermes-chat enrich
|
|
|
|
# Load .env if it exists
|
|
-include .env
|
|
export
|
|
|
|
DEPLOY_USER := deploy
|
|
MONOTROPE_HOST ?=
|
|
|
|
build: enrich
|
|
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
|
|
|
|
miniflux:
|
|
@test -n "$(MONOTROPE_HOST)" || (echo "Error: MONOTROPE_HOST is not set"; exit 1)
|
|
ansible-playbook -i "$(MONOTROPE_HOST)," -u root infra/ansible/playbook.yml --tags miniflux
|
|
|
|
gitea:
|
|
@test -n "$(MONOTROPE_HOST)" || (echo "Error: MONOTROPE_HOST is not set"; exit 1)
|
|
ansible-playbook -i "$(MONOTROPE_HOST)," -u root infra/ansible/playbook.yml --tags gitea
|
|
|
|
goatcounter:
|
|
@test -n "$(MONOTROPE_HOST)" || (echo "Error: MONOTROPE_HOST is not set"; exit 1)
|
|
ansible-playbook -i "$(MONOTROPE_HOST)," -u root infra/ansible/playbook.yml --tags goatcounter
|
|
|
|
hermes:
|
|
@test -n "$(MONOTROPE_HOST)" || (echo "Error: MONOTROPE_HOST is not set"; exit 1)
|
|
ansible-playbook -i "$(MONOTROPE_HOST)," -u root infra/ansible/playbook.yml --tags hermes
|
|
|
|
hermes-chat:
|
|
@test -n "$(MONOTROPE_HOST)" || (echo "Error: MONOTROPE_HOST is not set"; exit 1)
|
|
ssh -t root@$(MONOTROPE_HOST) docker exec -it hermes hermes chat
|
|
|
|
|
|
enrich:
|
|
uv run enrich.py
|