From ce840a9b41d40c9c0fb7d3b94b79cc82e833ebab Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Fri, 24 Jul 2015 17:05:05 +0530 Subject: [PATCH] Fix changed function for generating cache config --- bench/utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bench/utils.py b/bench/utils.py index f0d6bc18..dd5a062c 100644 --- a/bench/utils.py +++ b/bench/utils.py @@ -46,7 +46,7 @@ def get_env_cmd(cmd, bench='.'): def init(path, apps_path=None, no_procfile=False, no_backups=False, no_auto_update=False, frappe_path=None, frappe_branch=None, wheel_cache_dir=None): from .app import get_app, install_apps_from_path - from .config import generate_redis_config + from .config import generate_redis_cache_config global FRAPPE_VERSION if os.path.exists(path): print 'Directory {} already exists!'.format(path) @@ -78,6 +78,7 @@ def init(path, apps_path=None, no_procfile=False, no_backups=False, setup_socketio(bench=path) FRAPPE_VERSION = get_current_frappe_version(bench=path) build_assets(bench=path) + generate_redis_cache_config(bench=path) generate_redis_config(bench=path) def exec_cmd(cmd, cwd='.'): @@ -474,13 +475,13 @@ def pre_upgrade(from_ver, to_ver, bench='.'): def post_upgrade(from_ver, to_ver, bench='.'): from .app import get_current_frappe_version - from .config import generate_nginx_config, generate_supervisor_config, generate_redis_config + from .config import generate_nginx_config, generate_supervisor_config, generate_redis_cache_config conf = get_config(bench=bench) if from_ver == 4 and to_ver == 5: print "-"*80 print "Your bench was upgraded to version 5" if conf.get('restart_supervisor_on_update'): - generate_redis_config(bench=bench) + generate_redis_cache_config(bench=bench) generate_supervisor_config(bench=bench) generate_nginx_config(bench=bench) setup_procfile(bench=bench)