1 # gsgd
2
3 Script for automatically updating your static git website generated with gsg.
4 See: <https://spwbk.site/git/projects/git-site-gen.git/index.html>
5
6 Disclaimer: This script is pretty awful, and is possibly even an example of
7 "worst practices".
8
9 ## Usage
10
11 gsgd uses the contents of the file talk.gsgd to trigger events.
12 You can use server side git hooks such as ``post-receive` to trigger gsgd.
13
14
15 A `post-receive` script example:
16 ```
17 #!/bin/bash
18 echo -ne "Regen\n" >> /some/path/to/talk.gsgd
19 ```
20
21 You can create these server side in your project dirs, see the Server-Side Hooks section here: <https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks>
22
23 You can also just call gsg directly from from your `post-receive`, but the client side will hang until gsg completes.
24
25 ## Backgrounding
26 You can run `gsgd` in the background via `./gsgd &` and `disown %1`, use tmux/screen, etc.