Don't use uWSGI master mode by default. Fixes Ctrl+C on macOS and is

really only important in production configs where you should be using a
config file anyway.
This commit is contained in:
Nate Coraor
2017-12-06 20:28:21 -05:00
committed by John Chilton
parent bce21ab3f3
commit 8f69d17e86
+1 -2
View File
@@ -22,7 +22,7 @@ ALIASES = {
'http': ('httprouter', 'socket', 'uwsgi-socket', 'suwsgi-socket', 'ssl-socket'),
}
DEFAULT_ARGS = {
'_all_': ('virtualenv', 'pythonpath', 'master', 'threads', 'http', 'static-map', 'die-on-term', 'hook-master-start', 'enable-threads'),
'_all_': ('virtualenv', 'pythonpath', 'threads', 'http', 'static-map', 'die-on-term', 'hook-master-start', 'enable-threads'),
'galaxy': ('py-call-osafterfork',),
'reports': (),
'tool_shed': (),
@@ -89,7 +89,6 @@ def _get_uwsgi_args(cliargs, kwargs):
defaults = {
'virtualenv': os.environ.get('VIRTUAL_ENV', './.venv'),
'pythonpath': 'lib',
'master': True,
'threads': '4',
'http': 'localhost:{port}'.format(port=DEFAULT_PORTS[cliargs.app]),
'static-map': ('/static/style={here}/static/style/blue'.format(here=os.getcwd()),