Return to index
Clone: git clone https://git.spwbk.site:3000/swatson/gsgd.git/

gsgd


Script for automatically updating your static git website generated with gsg.
See: https://spwbk.site/git/projects/git-site-gen.git/index.html

Disclaimer: This script is pretty awful, and is possibly even an example of
"worst practices".

Usage


gsgd uses the contents of the file talk.gsgd to trigger events.
You can use server side git hooks such as ``post-receive` to trigger gsgd.


A `post-receive` script example:

#!/bin/bash
echo -ne "Regen\n" >> /some/path/to/talk.gsgd

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

You can also just call gsg directly from from your `post-receive`, but the client side will hang until gsg completes.

Backgrounding

You can run `gsgd` in the background via `./gsgd &` and `disown %1`, use tmux/screen, etc.

Files for gsgd.git/

FileCommitRaw
.gitignorea4476eb9ba93a6311afc140c56550a9496b11fa3raw
README.mda0f6e33508d3e71b95a3c5f0cb4cb620a6369a33raw
gsgdee9d0a3d4a5138172c361ab60749ed32f09d9c89raw

Logs for gsgd.git/

fbc800da2f95d57d922051422142b0ef2de31105.html
e9b6cbf4be980388677c3393fcb96956a941d078.html
4134013ebb0dffdddab734c0fea5278d8b2ed3bc.html
a47b557c85b89754a34b8aa378ca0b2b4b52b4d6.html
a899d109ef45254ee9039825629a530c86ffa06c.html