docbow/run.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
191 B
Bash
Raw Normal View History

#!/bin/sh
2013-08-15 15:11:27 +02:00
BASE=$(dirname $0)
PROJECT=docbow
2013-08-15 15:11:27 +02:00
CTL=$BASE/${PROJECT}-ctl
VENV=$BASE/${PROJECT}-venv
if [ ! -d $VENV ]; then
2013-08-15 15:11:27 +02:00
$BASE/start.sh
else
2013-08-15 15:11:27 +02:00
. $VENV/bin/activate
$CTL "${@:-runserver}"
fi