From b135c0570feac615f445b539f5e7b7cceafc6b46 Mon Sep 17 00:00:00 2001 From: Nick Stenning Date: Thu, 15 Oct 2015 14:10:49 +0200 Subject: [PATCH] Respect defaults when running a paster application The values of both the 'workers' and 'umask' settings have global defaults. In the case of 'workers', this global default can be overridden by the WEB_CONCURRENCY environment variable, which prior to this commit is ignored by `gunicorn --paste`. Removing this duplication of defaults allows `gunicorn --paste` to respect settings from: - the environment (WEB_CONCURRENCY) - the paste configuration file - CLI flags --- gunicorn/app/pasterapp.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gunicorn/app/pasterapp.py b/gunicorn/app/pasterapp.py index 86aca9e0..a6150225 100644 --- a/gunicorn/app/pasterapp.py +++ b/gunicorn/app/pasterapp.py @@ -44,8 +44,6 @@ def paste_config(gconfig, config_url, relative_to, global_conf=None): elif host: cfg['bind'] = host.split(',') - cfg['workers'] = int(lc.get('workers', 1)) - cfg['umask'] = int(lc.get('umask', 0)) cfg['default_proc_name'] = gc.get('__file__') # init logging configuration