diff --git a/bench/app.py b/bench/app.py index ad3b5c71..df709737 100644 --- a/bench/app.py +++ b/bench/app.py @@ -1,5 +1,5 @@ import os -from .utils import exec_cmd, get_frappe, check_git_for_shallow_clone, get_config +from .utils import exec_cmd, get_frappe, check_git_for_shallow_clone, get_config, build_assets import logging import requests @@ -26,6 +26,7 @@ def get_app(app, git_url, bench='.'): shallow_clone = '--depth 1' if check_git_for_shallow_clone() and get_config().get('shallow_clone') else '' exec_cmd("git clone {git_url} {shallow_clone} --origin upstream {app}".format(git_url=git_url, app=app, shallow_clone=shallow_clone), cwd=os.path.join(bench, 'apps')) install_app(app, bench=bench) + build_assets(bench=bench) def new_app(app, bench='.'): logger.info('creating new app {}'.format(app)) diff --git a/bench/utils.py b/bench/utils.py index 1d2501a4..8351f773 100644 --- a/bench/utils.py +++ b/bench/utils.py @@ -42,7 +42,6 @@ def init(path, apps_path=None): setup_procfile(bench=path) setup_backups(bench=path) setup_auto_update(bench=path) - exec_cmd("{frappe} --build".format(frappe=get_frappe(bench=path)), cwd=os.path.join(path, 'sites')) if apps_path: install_apps_from_path(apps_path, bench=path)