[INFRA] Push-to-render: post-receive hook + nginx #7
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: trentuna/asw#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wire Forgejo push → Hugo build → nginx serves updated site.
Post-receive hook (Forgejo repo settings → Git Hooks → post-receive):
nginx: update asw.trentuna.com root from ~/projects/asw-site/ to ~/projects/asw/public/
Verify: git push from local clone → site updates within seconds at asw.trentuna.com
Push-to-render pipeline complete:
asw.trentuna.comserver block now serves static Hugo output from~/projects/asw/public/http://172.17.0.1:9073/rebuildon push to mainasw-rebuild.service: systemd service running~/os/asw-rebuild-webhook.pyon port 9073asw-rebuild.sh: checkout from bare repo → postcss (pre-builds CSS) → hugo --minify[webhook] ALLOWED_HOST_LIST = 172.17.0.1to allow intra-docker callsNote: Hugo Pipes runs PostCSS from a temp dir (breaks relative paths). Workaround: pre-process CSS with postcss-cli before Hugo, reference
assets/css/asw-built.cssdirectly (no postCSS pipe in baseof.html).Builds succeed. Site returns HTTP 200 for all pages.