mirror of https://github.com/zulip/zulip.git
supervisor: Use 127.0.0.1 rather than localhost for tornado.
In theory these should be the same, but in misconfigured environments (such at Travis CI) where /etc/hosts has multiple entries for "localhost", 127.0.0.1 is safer than "localhost".
This commit is contained in:
parent
52e96915e2
commit
c0d38f42f1
|
@ -43,7 +43,7 @@ socket_owner=zulip:zulip
|
||||||
socket_mode=0700
|
socket_mode=0700
|
||||||
|
|
||||||
[program:zulip-tornado]
|
[program:zulip-tornado]
|
||||||
command=python2.7 /home/zulip/deployments/current/manage.py runtornado localhost:9993
|
command=python2.7 /home/zulip/deployments/current/manage.py runtornado 127.0.0.1:9993
|
||||||
priority=200 ; the relative start priority (default 999)
|
priority=200 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
|
|
@ -303,7 +303,7 @@ INSTALLED_APPS = [
|
||||||
# Base URL of the Tornado server
|
# Base URL of the Tornado server
|
||||||
# We set it to None when running backend tests or populate_db.
|
# We set it to None when running backend tests or populate_db.
|
||||||
# We override the port number when running frontend tests.
|
# We override the port number when running frontend tests.
|
||||||
TORNADO_SERVER = 'http://localhost:9993'
|
TORNADO_SERVER = 'http://127.0.0.1:9993'
|
||||||
RUNNING_INSIDE_TORNADO = False
|
RUNNING_INSIDE_TORNADO = False
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
Loading…
Reference in New Issue