gunicorn/examples/gunicorn_rc
Justin Quick 76a0d7ae83 typo
2011-02-05 10:50:37 +08:00

13 lines
218 B
Bash
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