From e083317c36e80ff2d2764ef576cdbceec5e7dc67 Mon Sep 17 00:00:00 2001 From: eribeiro Date: Mon, 16 Nov 2020 17:27:24 -0300 Subject: [PATCH] Revert "Update gunicorn_start.sh (#3312)" This reverts commit ce5f04374b7202a926fa3b6a531dacca9ea8ea1c. --- docker/gunicorn_start.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/docker/gunicorn_start.sh b/docker/gunicorn_start.sh index 94e1cc34f..708f742be 100755 --- a/docker/gunicorn_start.sh +++ b/docker/gunicorn_start.sh @@ -11,9 +11,6 @@ then SAPL_DIR="$1" fi -#Carrega as variáveis de ambiente -export $(egrep -v '^#' $SAPL_DIR/sapl/.env | xargs) - NAME="SAPL" # Name of the application (*) DJANGODIR=/var/interlegis/sapl/ # Django project directory (*) SOCKFILE=/var/interlegis/sapl/run/gunicorn.sock # we will communicate using this unix socket (*) @@ -28,17 +25,6 @@ DJANGO_WSGI_MODULE=sapl.wsgi # WSGI module name (*) echo "Starting $NAME as `whoami` on base dir $SAPL_DIR" -# Ativa ambiente virtual -cd $DJANGODIR -if [ "$SAPL_VIRTUAL_ENV" ] -then -source $SAPL_VIRTUAL_ENV/bin/activate -else -source /var/interlegis/.virtualenvs/sapl/bin/activate -fi -export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE -export PYTHONPATH=$DJANGODIR:$PYTHONPATH - # Create the run directory if it doesn't exist RUNDIR=$(dirname $SOCKFILE) test -d $RUNDIR || mkdir -p $RUNDIR