mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Some examples had -C instead of -c for specifying the config file. Thanks to martync@github for the report. Fixes #86
13 lines
218 B
Plaintext
Executable File
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
|