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.
portail-citoyen2/run.sh

16 lines
250 B
Bash
Executable File

#!/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}"