diff --git a/README.md b/README.md index edddaef82..22aa5c793 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ running: ``` sudo mkdir -p /mnt/nginx/ && sudo nginx -c `pwd`/nginx.conf -STACK=prod gunicorn -D --workers 4 -b unix:/tmp/gunicorn.sock --worker-class gevent -t 2000 application:application +STACK=prod gunicorn -c gunicorn_config.py ``` start the workers: diff --git a/gunicorn_config.py b/gunicorn_config.py new file mode 100644 index 000000000..59141b06d --- /dev/null +++ b/gunicorn_config.py @@ -0,0 +1,5 @@ +bind = 'unix:/tmp/gunicorn.sock' +workers = 8 +worker_class = 'gevent' +timeout = 2000 +daemon = True