Commit 82f75a55 authored by Jeff MrBE4R's avatar Jeff MrBE4R
Browse files

second commit

parent 7d256ef0
#!/bin/bash
NAME="bearmetal-dashboard"
APPDIR=/opt/dashboard-ecole-ete/dashboard-ecole-ete
SOCKFILE=/opt/dashboard-ecole-ete/run/dashboard.sock
NUM_WORKERS=4
MODULE_NAME=dashboard
echo "Starting $NAME as `whoami`"
cd ${APPDIR}
source ../bin/activate
export PYTHONPATH=${APPDIR}:$PYTHONPATH
RUNDIR=$(dirname $SOCKFILE)
test -d $RUNDIR || mkdir -p $RUNDIR
exec ../bin/gunicorn ${MODULE_NAME}:app \
--name $NAME \
--workers $NUM_WORKERS \
-k 'eventlet' \
--bind=unix:$SOCKFILE \
--log-level=warning \
--log-file=/opt/dashboard-ecole-ete/logs/dashbord.log \
--timeout 300
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment