Use example of doc

This commit is contained in:
benoitc 2010-02-20 23:18:16 +01:00
parent 95e8dc0ec6
commit 316e943609

View File

@ -1,9 +1,12 @@
#!/bin sh
if [ -f /var/run/gunicorn.pid ]; then
rm /var/run/gunicorn.pid
fi
GUNICORN=/usr/local/bin/gunicorn
ROOT=/path/to/project
PID=/var/run/gunicorn.pid
cd /path/to/project
exec /usr/local/bin/gunicorn -C /path/to/project/gunicorn.conf.py \
--pidfile=/var/run/gunicorn.pid main:application
APP=main:application
if [ -f $PID ]; then rm $PID fi
cd $ROOT
exec $GUNICORN -C $ROOT/gunicorn.conf.py --pidfile=$PID $APP