This repository has been archived on 2023-09-18. You can view files and clone it, but cannot push or open issues or pull requests.
blogtopoid/post-receive.example

13 lines
322 B
Bash
Executable File

#!/bin/sh
# dir where the checked out project lives on the server
CHECKOUT_DIR=/home/chris/blog
# virtualenv directory to use
VENV_DIR=$CHECKOUT_DIR/venv
# cd into checkout dir, git pull, generate blog
cd $CHECKOUT_DIR
GIT_DIR=$CHECKOUT_DIR/.git
GIT_WORK_TREE=$CHECKOUT_DIR /usr/bin/git pull -v
$VENV_DIR/bin/blogtopoid