Skip to content

Commit

Permalink
fix: build assets regardless of postprocess
Browse files Browse the repository at this point in the history
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
  • Loading branch information
Thunderbottom committed May 19, 2020
1 parent 11c2ec6 commit a4a9b59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down
2 changes: 1 addition & 1 deletion bench/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def setup_app(app):
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()
Expand Down

0 comments on commit a4a9b59

Please sign in to comment.