Skip to content

Commit

Permalink
fix: default caching of pip packages, use reload_supervisor function
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarvora committed Dec 13, 2018
1 parent 36d12fe commit 0afb89a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bench/app.py
Expand Up @@ -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(
pip=os.path.join(bench_path, 'env', 'bin', 'pip'),
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),
find_links=find_links))
add_to_appstxt(app, bench_path=bench_path)
Expand Down
3 changes: 1 addition & 2 deletions bench/config/production_setup.py
Expand Up @@ -52,8 +52,7 @@ def disable_production(bench_path='.'):
os.unlink(supervisor_conf)

if get_config(bench_path).get('restart_supervisor_on_update'):
exec_cmd('sudo supervisorctl reread')
exec_cmd('sudo supervisorctl update')
reload_supervisor()

# nginx
nginx_conf = '/etc/nginx/conf.d/{bench_name}.conf'.format(bench_name=bench_name)
Expand Down

0 comments on commit 0afb89a

Please sign in to comment.