2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-24 13:09:01 +00:00

Merge pull request #754 from sagarvora/fixes

fix: default caching of pip packages and other changes
This commit is contained in:
Ameya Shenoy 2018-12-13 11:27:45 +05:30 committed by GitHub
commit 9d7d089df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -174,7 +174,7 @@ def install_app(app, bench_path='.', verbose=False, no_cache=False):
exec_cmd("{pip} install {quiet} {find_links} -e {app} {no_cache}".format( exec_cmd("{pip} install {quiet} {find_links} -e {app} {no_cache}".format(
pip=os.path.join(bench_path, 'env', 'bin', 'pip'), pip=os.path.join(bench_path, 'env', 'bin', 'pip'),
quiet="-q" if not verbose else "", quiet="-q" if not verbose else "",
no_cache='--no-cache-dir' if not no_cache else '', no_cache='--no-cache-dir' if no_cache else '',
app=os.path.join(bench_path, 'apps', app), app=os.path.join(bench_path, 'apps', app),
find_links=find_links)) find_links=find_links))
add_to_appstxt(app, bench_path=bench_path) add_to_appstxt(app, bench_path=bench_path)

View File

@ -52,8 +52,7 @@ def disable_production(bench_path='.'):
os.unlink(supervisor_conf) os.unlink(supervisor_conf)
if get_config(bench_path).get('restart_supervisor_on_update'): if get_config(bench_path).get('restart_supervisor_on_update'):
exec_cmd('sudo supervisorctl reread') reload_supervisor()
exec_cmd('sudo supervisorctl update')
# nginx # nginx
nginx_conf = '/etc/nginx/conf.d/{bench_name}.conf'.format(bench_name=bench_name) nginx_conf = '/etc/nginx/conf.d/{bench_name}.conf'.format(bench_name=bench_name)