summaryrefslogtreecommitdiffstats
path: root/run.sh
blob: 8700df105aa10ce1af53dfef7d5237771e6666bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
BASE=`dirname $0`
PROJECT=portail-citoyen2
CTL=$BASE/${PROJECT}
VENV=$BASE/${PROJECT}-venv

if [ ! -n "$VIRTUAL_ENV" ]; then
	if [ ! -d $VENV ]; then
	$BASE/start.sh norun
	fi
	. $VENV/bin/activate
fi
export DEBUG=1
$CTL "${@:-runserver}"