This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
2013-06-26 10:30:51 +02:00
|
|
|
#!/bin/sh
|
2013-07-24 13:10:33 +02:00
|
|
|
BASE=`dirname $0`
|
2013-06-26 10:30:51 +02:00
|
|
|
PROJECT=compte-agglo-montpellier
|
2013-07-24 13:10:33 +02:00
|
|
|
CTL=$BASE/${PROJECT}
|
|
|
|
VENV=$BASE/${PROJECT}-venv
|
2013-06-26 10:30:51 +02:00
|
|
|
|
2013-07-01 14:04:28 +02:00
|
|
|
if [ ! -n "$VIRTUAL_ENV" ]; then
|
|
|
|
if [ ! -d $VENV ]; then
|
2013-07-24 13:10:33 +02:00
|
|
|
$BASE/start.sh norun
|
2013-07-01 14:04:28 +02:00
|
|
|
fi
|
2013-07-24 13:10:33 +02:00
|
|
|
. $VENV/bin/activate
|
2013-06-26 10:30:51 +02:00
|
|
|
fi
|
2013-07-24 13:10:33 +02:00
|
|
|
$CTL "${@:-runserver}"
|
2013-07-01 14:04:28 +02:00
|
|
|
|