2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-14 09:14:04 +00:00

Merge pull request #415 from frappe/file-watcher-port

Add file_watcher_port to common_site_config.json
This commit is contained in:
Sagar Vora 2017-05-25 14:51:15 +05:30 committed by GitHub
commit 90cedf22fa
2 changed files with 4 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def update_config_for_frappe(config, bench_path):
if key not in config: if key not in config:
config[key] = "redis://localhost:{0}".format(ports[key]) 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: if key not in config:
config[key] = ports[key] config[key] = ports[key]
@ -75,6 +75,7 @@ def make_ports(bench_path):
default_ports = { default_ports = {
"webserver_port": 8000, "webserver_port": 8000,
"socketio_port": 9000, "socketio_port": 9000,
"file_watcher_port": 6787,
"redis_queue": 11000, "redis_queue": 11000,
"redis_socketio": 12000, "redis_socketio": 12000,
"redis_cache": 13000 "redis_cache": 13000

View File

@ -40,6 +40,7 @@ class TestBenchInit(unittest.TestCase):
self.assert_common_site_config("test-bench-1", { self.assert_common_site_config("test-bench-1", {
"webserver_port": 8000, "webserver_port": 8000,
"socketio_port": 9000, "socketio_port": 9000,
"file_watcher_port": 6787,
"redis_queue": "redis://localhost:11000", "redis_queue": "redis://localhost:11000",
"redis_socketio": "redis://localhost:12000", "redis_socketio": "redis://localhost:12000",
"redis_cache": "redis://localhost:13000" "redis_cache": "redis://localhost:13000"
@ -51,6 +52,7 @@ class TestBenchInit(unittest.TestCase):
self.assert_common_site_config("test-bench-2", { self.assert_common_site_config("test-bench-2", {
"webserver_port": 8001, "webserver_port": 8001,
"socketio_port": 9001, "socketio_port": 9001,
"file_watcher_port": 6788,
"redis_queue": "redis://localhost:11001", "redis_queue": "redis://localhost:11001",
"redis_socketio": "redis://localhost:12001", "redis_socketio": "redis://localhost:12001",
"redis_cache": "redis://localhost:13001" "redis_cache": "redis://localhost:13001"