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.
compte-agglo-montpellier/run.sh

15 lines
243 B
Bash
Executable File

#!/bin/sh
BASE=`dirname $0`
PROJECT=compte-agglo-montpellier
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
$CTL "${@:-runserver}"