aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2022-12-30 18:36:13 +0000
committerMartin Ashby <martin@ashbysoft.com>2022-12-30 18:36:13 +0000
commitddd28f163dcb86267de7bb7bad9c2986c168a671 (patch)
tree45ca9f09411dda67e3f47011362bd501b6d96c22
parent18d599a56064f96b9662e90fccddc36081425c5d (diff)
downloadmfashby.net-ddd28f163dcb86267de7bb7bad9c2986c168a671.tar.gz
mfashby.net-ddd28f163dcb86267de7bb7bad9c2986c168a671.tar.bz2
mfashby.net-ddd28f163dcb86267de7bb7bad9c2986c168a671.tar.xz
mfashby.net-ddd28f163dcb86267de7bb7bad9c2986c168a671.zip
Update git pre-push hook to deploy site on push
This replaces on-server generation of the static site, and also means we don't need rustc on the server to compile the comments app
-rwxr-xr-xupdate-hooks.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/update-hooks.sh b/update-hooks.sh
new file mode 100755
index 0000000..a37c390
--- /dev/null
+++ b/update-hooks.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+## Configure git hooks
+git lfs install
+grep -qxF './deploy.sh' .git/hooks/pre-push || echo './deploy.sh' >> .git/hooks/pre-push