mirror of
https://github.com/frappe/bench.git
synced 2024-11-11 15:51:03 +00:00
Fix changed function for generating cache config
This commit is contained in:
parent
f9c9e878e0
commit
ce840a9b41
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user