mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Use example of doc
This commit is contained in:
parent
95e8dc0ec6
commit
316e943609
@ -1,9 +1,12 @@
|
|||||||
#!/bin sh
|
#!/bin sh
|
||||||
|
|
||||||
if [ -f /var/run/gunicorn.pid ]; then
|
GUNICORN=/usr/local/bin/gunicorn
|
||||||
rm /var/run/gunicorn.pid
|
ROOT=/path/to/project
|
||||||
fi
|
PID=/var/run/gunicorn.pid
|
||||||
|
|
||||||
cd /path/to/project
|
APP=main:application
|
||||||
exec /usr/local/bin/gunicorn -C /path/to/project/gunicorn.conf.py \
|
|
||||||
--pidfile=/var/run/gunicorn.pid main:application
|
if [ -f $PID ]; then rm $PID fi
|
||||||
|
|
||||||
|
cd $ROOT
|
||||||
|
exec $GUNICORN -C $ROOT/gunicorn.conf.py --pidfile=$PID $APP
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user