diff --git a/README.md b/README.md index db127c9..466c470 100644 --- a/README.md +++ b/README.md @@ -74,3 +74,10 @@ We have a Git hook setup, so just push as you would as normal: ``` $ git push origin master ``` + +Details for maintaining the hook on the Varia server are: + +* We have cloned the site in `/srv/gitea/clones/homebrewserver.club` +* We have create a hook deployment script in `/srv/gitea/gitea-repositories/varia/homebrewserver.club.git/hooks/post-update` + +How it works: when someone runs a `git push origin master`, the script in the `post-update` will run after the updating is finished. In this script, we run all the steps to publish the site as per usual. Such as running `pip install -r requirements.txt` and `pelican` to generate the new output.