From 639e1ec9c6dc2b059658b2aff7a14e765086b607 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 5 Jul 2018 11:09:35 +1000 Subject: [PATCH] Add Gunicorn config file so we can use server hooks --- gunicorn.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 gunicorn.py diff --git a/gunicorn.py b/gunicorn.py new file mode 100644 index 0000000..d068d61 --- /dev/null +++ b/gunicorn.py @@ -0,0 +1,6 @@ +import multiprocessing + +preload_app = True +proc_name = 'lemoncurry' +worker_class = 'gevent' +workers = multiprocessing.cpu_count() * 2 + 1