gunicorn/examples/gunicorn_rc
2010-02-20 23:18:16 +01:00

13 lines
218 B
Plaintext
Executable File

#!/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 --pidfile=$PID $APP