move hook script
This commit is contained in:
parent
77c6a4fbb8
commit
7fc84ce13b
1 changed files with 16 additions and 0 deletions
16
githook/post-receive.d/quartz
Executable file
16
githook/post-receive.d/quartz
Executable 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
|
Loading…
Reference in a new issue