diff options
Diffstat (limited to 'hooks/post-receive')
| -rw-r--r-- | hooks/post-receive | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hooks/post-receive b/hooks/post-receive new file mode 100644 index 0000000..051bd55 --- /dev/null +++ b/hooks/post-receive @@ -0,0 +1,8 @@ +#!/bin/sh +set -e +WORK=/home/git/build/ccc +WEBROOT=/var/www/coffee.gumx.cc +mkdir -p "$WEBROOT/fonts" +cp "$WORK/ccc.html" "$WEBROOT/index.html" +rsync -rlptD "$WORK/fonts/" "$WEBROOT/fonts/" 2>/dev/null || true +echo "ccc deployed to coffee.gumx.cc" |
