From 9f74ec0adb3616104a7004b16fec1c9d25cca834 Mon Sep 17 00:00:00 2001 From: Pruthvi Patel Date: Mon, 18 Oct 2021 16:29:05 +0530 Subject: [PATCH 1/3] 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 From a28a0d0d2389fcb7268e67ac56b6af74c93501af Mon Sep 17 00:00:00 2001 From: Pruthvi Patel Date: Mon, 18 Oct 2021 18:21:24 +0530 Subject: [PATCH 2/3] fix: correct patches.txt --- bench/patches/patches.txt | 1 + patches.txt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/patches/patches.txt b/bench/patches/patches.txt index 55a65019..da51be2e 100644 --- a/bench/patches/patches.txt +++ b/bench/patches/patches.txt @@ -6,3 +6,4 @@ bench.patches.v4.update_socketio bench.patches.v4.install_yarn #2 bench.patches.v5.fix_user_permissions bench.patches.v5.fix_backup_cronjob +bench.patches.v5.set_live_reload_config \ No newline at end of file diff --git a/patches.txt b/patches.txt index dcae0b8a..8ae25fd2 100644 --- a/patches.txt +++ b/patches.txt @@ -1,2 +1 @@ -bench.patches.v3.deprecate_old_config -bench.patches.v5.set_live_reload_config +bench.patches.v3.deprecate_old_config \ No newline at end of file From 85500b7751756b8a17304268f5514a0385991cc8 Mon Sep 17 00:00:00 2001 From: Pruthvi Patel Date: Tue, 19 Oct 2021 19:50:50 +0530 Subject: [PATCH 3/3] fix: remove unwanted `patches.txt` --- patches.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 patches.txt diff --git a/patches.txt b/patches.txt deleted file mode 100644 index 8ae25fd2..00000000 --- a/patches.txt +++ /dev/null @@ -1 +0,0 @@ -bench.patches.v3.deprecate_old_config \ No newline at end of file