mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 18:13:58 +00:00
tornado: Merge the TORNADO_SERVER and TORNADO_PORTS configs.
Having both of these is confusing; TORNADO_SERVER is used only when there is one TORNADO_PORT. Its primary use is actually to be _unset_, and signal that in-process handling is to be done. Rename to USING_TORNADO, to parallel the existing USING_RABBITMQ, and switch the places that used it for its contents to using TORNADO_PORTS.
This commit is contained in:
committed by
Tim Abbott
parent
4b3121db0b
commit
e5f62d083e
@@ -58,6 +58,7 @@ from .configured_settings import (
|
||||
SOCIAL_AUTH_SAML_ENABLED_IDPS,
|
||||
SOCIAL_AUTH_SAML_SECURITY_CONFIG,
|
||||
STATSD_HOST,
|
||||
TORNADO_PORTS,
|
||||
USING_PGROONGA,
|
||||
ZULIP_ADMINISTRATOR,
|
||||
)
|
||||
@@ -233,7 +234,8 @@ INSTALLED_APPS += EXTRA_INSTALLED_APPS
|
||||
ZILENCER_ENABLED = 'zilencer' in INSTALLED_APPS
|
||||
CORPORATE_ENABLED = 'corporate' in INSTALLED_APPS
|
||||
|
||||
TORNADO_PORTS = get_tornado_ports(config_file)
|
||||
if not TORNADO_PORTS:
|
||||
TORNADO_PORTS = get_tornado_ports(config_file)
|
||||
TORNADO_PROCESSES = len(TORNADO_PORTS)
|
||||
|
||||
RUNNING_INSIDE_TORNADO = False
|
||||
|
||||
Reference in New Issue
Block a user