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:
parent
76999e9ed8
commit
8edfce4233
@ -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)
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user