mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix mule starting under uWSGI with --ini-paste
This commit is contained in:
@@ -189,8 +189,10 @@ class UWSGIApplicationStack(MessageApplicationStack):
|
||||
config_file = uwsgi_opt.get("galaxy_config_file")
|
||||
# otherwise, check --ini-paste
|
||||
if config_file is None and uwsgi_opt.get("ini-paste"):
|
||||
config_file = uwsgi_opt.get("ini") or uwsgi_opt.get("ini-paste")
|
||||
kwds['config_section'] = app_section
|
||||
config_file = uwsgi_opt["ini-paste"]
|
||||
parser = nice_config_parser(config_file)
|
||||
if not parser.has_section(config_section) and parser.has_section('app:main'):
|
||||
kwds['config_section'] = 'app:main'
|
||||
if config_file is None:
|
||||
return None
|
||||
kwds['config_file'] = config_file
|
||||
|
||||
Reference in New Issue
Block a user