mirror of
https://github.com/frappe/bench.git
synced 2024-11-18 11:05:12 +00:00
commit
e57b37f52b
@ -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:
|
||||||
|
@ -174,8 +174,7 @@ def migrate_env(python, backup=False):
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
parch = os.path.join(path, "archived", "envs")
|
parch = os.path.join(path, "archived", "envs")
|
||||||
if not os.path.exists(parch):
|
os.makedirs(parch, exist_ok=True)
|
||||||
os.mkdir(parch)
|
|
||||||
|
|
||||||
source = os.path.join(path, "env")
|
source = os.path.join(path, "env")
|
||||||
target = parch
|
target = parch
|
||||||
|
Loading…
Reference in New Issue
Block a user