mirror of
https://github.com/frappe/bench.git
synced 2025-01-23 15:08:24 +00:00
[fix] reload bench utils and bench app
This commit is contained in:
parent
2e02ec78a2
commit
494177d402
@ -60,7 +60,7 @@ def update(pull=False, patch=False, build=False, bench=False, auto=False, restar
|
|||||||
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
|
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
|
||||||
|
|
||||||
|
|
||||||
def _update(pull=False, patch=False, build=False, bench=False, auto=False, restart_supervisor=False, requirements=False, no_backup=False, upgrade=False, bench_path='.', force=False):
|
def _update(pull=False, patch=False, build=False, update_bench=False, auto=False, restart_supervisor=False, requirements=False, no_backup=False, upgrade=False, bench_path='.', force=False):
|
||||||
conf = get_config(bench=bench_path)
|
conf = get_config(bench=bench_path)
|
||||||
version_upgrade = is_version_upgrade(bench=bench_path)
|
version_upgrade = is_version_upgrade(bench=bench_path)
|
||||||
|
|
||||||
@ -80,9 +80,9 @@ def _update(pull=False, patch=False, build=False, bench=False, auto=False, resta
|
|||||||
|
|
||||||
if upgrade and (version_upgrade[0] or (not version_upgrade[0] and force)):
|
if upgrade and (version_upgrade[0] or (not version_upgrade[0] and force)):
|
||||||
pre_upgrade(version_upgrade[1], version_upgrade[2], bench=bench_path)
|
pre_upgrade(version_upgrade[1], version_upgrade[2], bench=bench_path)
|
||||||
import utils, app
|
import bench.utils, bench.app
|
||||||
reload(utils)
|
reload(bench.utils)
|
||||||
reload(app)
|
reload(bench.app)
|
||||||
|
|
||||||
if patch:
|
if patch:
|
||||||
if not no_backup:
|
if not no_backup:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user