2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

fix generate_redis_config

This commit is contained in:
Pratik Vyas 2015-03-04 17:20:36 +05:30
parent 76999e9ed8
commit 8edfce4233
2 changed files with 3 additions and 2 deletions

View File

@ -81,5 +81,6 @@ def generate_redis_config(bench='.'):
"redis_version": get_redis_version()
}
config = template.render(**conf)
with open("config/redis.conf", 'w') as f:
conf_path = os.path.join(bench, 'config', 'redis.conf')
with open(conf_path) as f:
f.write(config)

View File

@ -61,7 +61,7 @@ def init(path, apps_path=None, no_procfile=False, no_backups=False,
setup_auto_update(bench=path)
if apps_path:
install_apps_from_path(apps_path, bench=path)
generate_redis_config()
generate_redis_config(bench=path)
def exec_cmd(cmd, cwd='.'):
try: