From 9f74ec0adb3616104a7004b16fec1c9d25cca834 Mon Sep 17 00:00:00 2001 From: Pruthvi Patel Date: Mon, 18 Oct 2021 16:29:05 +0530 Subject: [PATCH] feat: add `live_reload` to default_config --- bench/config/common_site_config.py | 3 ++- bench/patches/v5/set_live_reload_config.py | 5 +++++ patches.txt | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 bench/patches/v5/set_live_reload_config.py diff --git a/bench/config/common_site_config.py b/bench/config/common_site_config.py index 8f64f541..c8d13db3 100644 --- a/bench/config/common_site_config.py +++ b/bench/config/common_site_config.py @@ -13,7 +13,8 @@ default_config = { 'frappe_user': getpass.getuser(), 'shallow_clone': True, 'background_workers': 1, - 'use_redis_auth': False + 'use_redis_auth': False, + 'live_reload': True } def make_config(bench_path): diff --git a/bench/patches/v5/set_live_reload_config.py b/bench/patches/v5/set_live_reload_config.py new file mode 100644 index 00000000..4538a6df --- /dev/null +++ b/bench/patches/v5/set_live_reload_config.py @@ -0,0 +1,5 @@ +from bench.config.common_site_config import update_config + + +def execute(bench_path): + update_config({'live_reload': True}, bench_path) diff --git a/patches.txt b/patches.txt index 8f127fe4..dcae0b8a 100644 --- a/patches.txt +++ b/patches.txt @@ -1 +1,2 @@ bench.patches.v3.deprecate_old_config +bench.patches.v5.set_live_reload_config