mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 16:36:25 +00:00
fix: Respect bench config during restart
Fixes https://github.com/frappe/bench/issues/1261
This commit is contained in:
parent
451712edcc
commit
25f49c2dbb
@ -138,9 +138,9 @@ class Bench(Base, Validator):
|
|||||||
|
|
||||||
if conf.get("developer_mode"):
|
if conf.get("developer_mode"):
|
||||||
restart_process_manager(bench_path=self.name, web_workers=web)
|
restart_process_manager(bench_path=self.name, web_workers=web)
|
||||||
if supervisor and conf.get("restart_supervisor_on_update"):
|
if supervisor or conf.get("restart_supervisor_on_update"):
|
||||||
restart_supervisor_processes(bench_path=self.name, web_workers=web)
|
restart_supervisor_processes(bench_path=self.name, web_workers=web)
|
||||||
if systemd and conf.get("restart_systemd_on_update"):
|
if systemd or conf.get("restart_systemd_on_update"):
|
||||||
restart_systemd_processes(bench_path=self.name, web_workers=web)
|
restart_systemd_processes(bench_path=self.name, web_workers=web)
|
||||||
|
|
||||||
def get_installed_apps(self) -> List:
|
def get_installed_apps(self) -> List:
|
||||||
|
Loading…
Reference in New Issue
Block a user