NewsBlur/gunicorn.py

13 lines
324 B
Python
Raw Normal View History

2010-06-27 21:01:49 -04:00
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"
2010-08-22 18:49:01 -04:00
logfile = "/home/conesus/newsblur/logs/production.log"
loglevel = "debug"
2010-08-13 18:19:40 -04:00
workers = numCPUs() #* 2 + 1