2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00

fix: build assets regardless of postprocess

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay D. Pai 2020-05-19 18:17:38 +05:30
parent 11c2ec6582
commit a4a9b59f42
No known key found for this signature in database
GPG Key ID: 75507BE256F40CED
2 changed files with 4 additions and 3 deletions

View File

@ -187,9 +187,10 @@ def install_app(app, bench_path=".", verbose=False, no_cache=False, postprocess=
add_to_appstxt(app, bench_path=bench_path)
if not skip_assets:
build_assets(bench_path=bench_path, app=app)
if postprocess:
if not skip_assets:
build_assets(bench_path=bench_path, app=app)
conf = get_config(bench_path=bench_path)
if conf.get('restart_supervisor_on_update'):

View File

@ -285,7 +285,7 @@ def clone_apps_from(bench_path, clone_from, update_app=True):
subprocess.check_output(['git', 'reset', '--hard'], cwd=app_path)
subprocess.check_output(['git', 'pull', '--rebase', remote, branch], cwd=app_path)
install_app(app, bench_path)
install_app(app, bench_path, postprocess=False)
with open(os.path.join(clone_from, 'sites', 'apps.txt'), 'r') as f:
apps = f.read().splitlines()