From 7fc84ce13b6b53117c619195865a57504b970b6f Mon Sep 17 00:00:00 2001 From: "Kaz Saita(raspi5)" Date: Thu, 22 Aug 2024 17:51:28 +0900 Subject: [PATCH] move hook script --- githook/post-receive.d/quartz | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 githook/post-receive.d/quartz diff --git a/githook/post-receive.d/quartz b/githook/post-receive.d/quartz new file mode 100755 index 0000000..2903316 --- /dev/null +++ b/githook/post-receive.d/quartz @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +WORKING_DIR=/var/www/tmp/public_notes/ + +echo 'Running quartz build script..' +pushd $WORKING_DIR +echo `whoami` + +echo 'working.. at' +echo `pwd` +git --git-dir=.git pull +npm install +npx quartz build + + + +popd