Procházet zdrojové kódy

Add notes about the hook

master
Luke Murphy před 5 roky
rodič
revize
9183fd2fca
V databázi nebyl nalezen žádný známý klíč pro tento podpis GPG Key ID: 5E2EF5A63E3718CC
  1. 7
      README.md

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

Načítá se…
Zrušit
Uložit