Skip to content
b054b7e Feb 26, 2015
@benoitc @davisp @justquick @siznax
executable file 13 lines (8 sloc) 215 Bytes
#!/bin/sh
GUNICORN=/usr/local/bin/gunicorn
ROOT=/path/to/project
PID=/var/run/gunicorn.pid
APP=main:application
if [ -f $PID ]; then rm $PID; fi
cd $ROOT
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pid=$PID $APP
Something went wrong with that request. Please try again.