From f08d98eadbc12bd7f22c67b13f9a5bba7492523c Mon Sep 17 00:00:00 2001 From: smile Date: Wed, 14 Feb 2018 15:58:25 +0100 Subject: [PATCH] updated guni.sh --- guni.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guni.sh b/guni.sh index d617f72..a369be2 100755 --- a/guni.sh +++ b/guni.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -e +set -ex LOGFILE=/home/cbmi/cbmi/cbmi.log LOGDIR=$(dirname $LOGFILE) NUM_WORKERS=3 @@ -13,7 +13,7 @@ source /home/cbmi/cbmi/bin/activate cd /home/cbmi/cbmi test -d $LOGDIR || mkdir -p $LOGDIR echo "foo" -exec gunicorn -w $NUM_WORKERS --bind=$ADDRESS \ +exec bin/gunicorn -w $NUM_WORKERS --bind=$ADDRESS \ --user=$USER --group=$GROUP --log-level=debug \ cbmi.wsgi:application \ --log-file=$LOGFILE 2>>$LOGFILE