From 726a8a551783648924167dd399327cbb5cd1149b Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Wed, 24 May 2017 11:54:21 +0530 Subject: [PATCH] Add file_watcher_port to common_site_config.json --- bench/config/common_site_config.py | 3 ++- bench/tests/test_init.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bench/config/common_site_config.py b/bench/config/common_site_config.py index 02edfc3b..f99b07cb 100644 --- a/bench/config/common_site_config.py +++ b/bench/config/common_site_config.py @@ -62,7 +62,7 @@ def update_config_for_frappe(config, bench_path): if key not in config: config[key] = "redis://localhost:{0}".format(ports[key]) - for key in ('webserver_port', 'socketio_port'): + for key in ('webserver_port', 'socketio_port', 'file_watcher_port'): if key not in config: config[key] = ports[key] @@ -75,6 +75,7 @@ def make_ports(bench_path): default_ports = { "webserver_port": 8000, "socketio_port": 9000, + "file_watcher_port": 6787, "redis_queue": 11000, "redis_socketio": 12000, "redis_cache": 13000 diff --git a/bench/tests/test_init.py b/bench/tests/test_init.py index b1ccda98..1b8d63d2 100755 --- a/bench/tests/test_init.py +++ b/bench/tests/test_init.py @@ -40,6 +40,7 @@ class TestBenchInit(unittest.TestCase): self.assert_common_site_config("test-bench-1", { "webserver_port": 8000, "socketio_port": 9000, + "file_watcher_port": 6787, "redis_queue": "redis://localhost:11000", "redis_socketio": "redis://localhost:12000", "redis_cache": "redis://localhost:13000" @@ -51,6 +52,7 @@ class TestBenchInit(unittest.TestCase): self.assert_common_site_config("test-bench-2", { "webserver_port": 8001, "socketio_port": 9001, + "file_watcher_port": 6788, "redis_queue": "redis://localhost:11001", "redis_socketio": "redis://localhost:12001", "redis_cache": "redis://localhost:13001"