Add Gunicorn config file so we can use server hooks

This commit is contained in:
Danielle McLean 2018-07-05 11:09:35 +10:00
parent a35072bbc3
commit 639e1ec9c6
Signed by: 00dani
GPG Key ID: 8EB789DDF3ABD240
1 changed files with 6 additions and 0 deletions

6
gunicorn.py Normal file
View File

@ -0,0 +1,6 @@
import multiprocessing
preload_app = True
proc_name = 'lemoncurry'
worker_class = 'gevent'
workers = multiprocessing.cpu_count() * 2 + 1