mirror of https://github.com/zulip/zulip.git
run-dev: Display the port 9991 warning in colored text.
This commit is contained in:
parent
e09c27f1ae
commit
82764d0215
|
@ -90,6 +90,8 @@ os.environ['DJANGO_SETTINGS_MODULE'] = settings_module
|
||||||
|
|
||||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||||
|
|
||||||
|
from scripts.lib.zulip_tools import WARNING, ENDC
|
||||||
|
|
||||||
proxy_port = base_port
|
proxy_port = base_port
|
||||||
django_port = base_port+1
|
django_port = base_port+1
|
||||||
tornado_port = base_port+2
|
tornado_port = base_port+2
|
||||||
|
@ -164,7 +166,7 @@ class Resource(resource.Resource):
|
||||||
else:
|
else:
|
||||||
print(", webpack: {}".format(webpack_port))
|
print(", webpack: {}".format(webpack_port))
|
||||||
|
|
||||||
print("Note: only port {} is exposed to the host in a Vagrant environment.".format(proxy_port))
|
print(WARNING + "Note: only port {} is exposed to the host in a Vagrant environment.".format(proxy_port) + ENDC)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
reactor.listenTCP(proxy_port, server.Site(Resource()), interface=options.interface)
|
reactor.listenTCP(proxy_port, server.Site(Resource()), interface=options.interface)
|
||||||
|
|
Loading…
Reference in New Issue