mirror of
https://github.com/frappe/bench.git
synced 2024-11-11 15:51:03 +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:
commit
90cedf22fa
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user