Skip to content

Instantly share code, notes, and snippets.

@vsudilov
Created November 13, 2014 14:30
Show Gist options
  • Save vsudilov/50471605517d614f43d1 to your computer and use it in GitHub Desktop.
Save vsudilov/50471605517d614f43d1 to your computer and use it in GitHub Desktop.
gunicorn.conf.py
import multiprocessing,os
APP_NAME = 'foobar'
bind = "0.0.0.0:5000"
#bind = "unix:/tmp/gunicorn-%s.sock" % APP_NAME
workers = multiprocessing.cpu_count() * 2 + 1
max_requests = 200
preload_app = True
chdir = os.path.dirname(__file__)
daemon = True
debug = False
errorlog = '/tmp/gunicorn-%s.error.log' % APP_NAME
accesslog = '/tmp/gunicorn-%s.access.log' % APP_NAME
pidfile = '/tmp/gunicorn-%s.pid' % APP_NAME
loglevel="info"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment