2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-08 00:04:38 +00:00

Merge pull request #1485 from ankush/localhost

refactor: use 127.0.0.1 instead of localhost
This commit is contained in:
Ankush Menat 2023-09-13 15:58:45 +05:30 committed by GitHub
commit dcae3e35cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -83,7 +83,7 @@ def update_config_for_frappe(config, bench_path):
for key in ("redis_cache", "redis_queue", "redis_socketio"):
if key not in config:
config[key] = f"redis://localhost:{ports[key]}"
config[key] = f"redis://127.0.0.1:{ports[key]}"
for key in ("webserver_port", "socketio_port", "file_watcher_port"):
if key not in config:

View File

@ -54,9 +54,9 @@ class TestBenchInit(TestBenchBase):
"webserver_port": 8000,
"socketio_port": 9000,
"file_watcher_port": 6787,
"redis_queue": "redis://localhost:11000",
"redis_socketio": "redis://localhost:13000",
"redis_cache": "redis://localhost:13000",
"redis_queue": "redis://127.0.0.1:11000",
"redis_socketio": "redis://127.0.0.1:13000",
"redis_cache": "redis://127.0.0.1:13000",
},
)
@ -66,9 +66,9 @@ class TestBenchInit(TestBenchBase):
"webserver_port": 8001,
"socketio_port": 9001,
"file_watcher_port": 6788,
"redis_queue": "redis://localhost:11001",
"redis_socketio": "redis://localhost:13001",
"redis_cache": "redis://localhost:13001",
"redis_queue": "redis://127.0.0.1:11001",
"redis_socketio": "redis://127.0.0.1:13001",
"redis_cache": "redis://127.0.0.1:13001",
},
)