Created
November 13, 2014 14:30
-
-
Save vsudilov/50471605517d614f43d1 to your computer and use it in GitHub Desktop.
gunicorn.conf.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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