2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 04:29:02 +00:00

better way to install docs

This commit is contained in:
Rushabh Mehta 2018-06-14 11:24:04 +05:30
parent 8fc3a87a37
commit 9f917f8464
2 changed files with 8 additions and 5 deletions

View File

@ -137,10 +137,12 @@ def get_app(git_url, branch=None, bench_path='.', build_asset_files=True, verbos
if postprocess:
# get apps for docs
if repo_name=='frappe':
get_app('https://github.com/frappe/frappe_io', postprocess = False)
get_app('https://github.com/frappe/frappe_io', bench_path = bench_path,
branch= 'master', postprocess = False)
if repo_name=='erpnext':
get_app('https://github.com/erpnext/foundation', post_process = False)
get_app('https://github.com/erpnext/foundation', bench_path = bench_path,
branch= 'master', post_process = False)
if build_asset_files:
build_assets(bench_path=bench_path)

View File

@ -142,7 +142,8 @@ def exec_cmd(cmd, cwd='.'):
logger.info(cmd)
p = subprocess.Popen(cmd, cwd=cwd, shell=True, stdout=stdout, stderr=stderr, universal_newlines=True)
p = subprocess.Popen(cmd, cwd=cwd, shell=True, stdout=stdout, stderr=stderr,
universal_newlines=True)
if async:
return_code = print_output(p)