Browse Source

Add notes about the hook

master
decentral1se 1 year ago
parent
commit
9183fd2fca
Signed by: decentral1se <lukewm@riseup.net> GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      README.md

+ 7
- 0
README.md 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.

Loading…
Cancel
Save