NewsBlur/gunicorn.py
2010-08-13 12:16:09 -04:00

10 lines
249 B
Python

import os
def numCPUs():
if not hasattr(os, "sysconf"):
raise RuntimeError("No sysconf detected.")
return os.sysconf("SC_NPROCESSORS_ONLN")
bind = "127.0.0.1:8000"
pidfile = "/tmp/gunicorn_newsblur.pid"
workers = numCPUs() * 2 + 1