mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge branch 'master' of github.com:benoitc/gunicorn
This commit is contained in:
commit
7c678d7ace
@ -12,6 +12,8 @@ from gunicorn import util
|
|||||||
|
|
||||||
class Config(object):
|
class Config(object):
|
||||||
|
|
||||||
|
DEFAULT_CONFIG_FILE = 'gunicorn.conf.py',
|
||||||
|
|
||||||
DEFAULTS = dict(
|
DEFAULTS = dict(
|
||||||
backlog=2048,
|
backlog=2048,
|
||||||
bind='127.0.0.1:8000',
|
bind='127.0.0.1:8000',
|
||||||
@ -39,7 +41,8 @@ class Config(object):
|
|||||||
|
|
||||||
def __init__(self, cmdopts, path=None):
|
def __init__(self, cmdopts, path=None):
|
||||||
if not path:
|
if not path:
|
||||||
self.config_file = os.path.join(os.getcwd(), 'gunicorn.conf.py')
|
self.config_file = os.path.join(os.getcwd(),
|
||||||
|
self.DEFAULT_CONFIG_FILE)
|
||||||
else:
|
else:
|
||||||
self.config_file = os.path.abspath(os.path.normpath(path))
|
self.config_file = os.path.abspath(os.path.normpath(path))
|
||||||
self.cmdopts = cmdopts
|
self.cmdopts = cmdopts
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user