12 lines
322 B
Bash
Executable file
12 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
|