Add notes about the hook

This commit is contained in:
Luke Murphy 2019-09-17 20:05:37 +02:00
parent 2db07691ae
commit 9183fd2fca
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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.