From 9183fd2fca4aebbb67be427e92c6939ca4fa538b Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 17 Sep 2019 20:05:37 +0200 Subject: [PATCH] Add notes about the hook --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) 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.