mirror of
https://github.com/status-im/cabot.git
synced 2025-02-24 10:28:06 +00:00
19 lines
315 B
Python
19 lines
315 B
Python
# -*- mode: python -*-
|
|
# vi: set ft=python :
|
|
|
|
import os
|
|
|
|
import gevent
|
|
from psycogreen.gevent import patch_psycopg
|
|
|
|
|
|
bind = '127.0.0.1:%s' % os.environ['PORT']
|
|
workers = 3
|
|
worker_class = 'gevent'
|
|
|
|
|
|
def post_fork(server, worker):
|
|
gevent.monkey.patch_all()
|
|
patch_psycopg()
|
|
worker.log.info('Made psycopg green')
|