move hook script

This commit is contained in:
Kaz Saita(raspi5) 2024-08-22 17:51:28 +09:00
parent 77c6a4fbb8
commit 7fc84ce13b

16
githook/post-receive.d/quartz Executable file
View file

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