2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

add build step to get-app

This commit is contained in:
Pratik Vyas 2014-07-26 23:57:57 +05:30
parent 2d2d98969c
commit 067e19636a
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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)