mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 16:36:25 +00:00
better way to install docs
This commit is contained in:
parent
8fc3a87a37
commit
9f917f8464
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user