mirror of
https://github.com/frappe/bench.git
synced 2025-02-13 08:18:27 +00:00
[Minor] Renamed variable
This commit is contained in:
parent
6797768572
commit
073bc1c0bd
@ -156,8 +156,8 @@ def generate_redis_cache_config(bench='.'):
|
||||
def _generate_redis_config(template_name, context, bench):
|
||||
template = env.get_template(template_name)
|
||||
|
||||
if "process_files_path" not in context:
|
||||
context["process_files_path"] = os.path.abspath(os.path.join(bench, "config", "files"))
|
||||
if "pid_path" not in context:
|
||||
context["pid_path"] = os.path.abspath(os.path.join(bench, "config", "files"))
|
||||
|
||||
redis_config = template.render(**context)
|
||||
write_config_file(bench, template_name, redis_config)
|
||||
|
@ -1,4 +1,4 @@
|
||||
dbfilename redis_async_broker.rdb
|
||||
dir {{process_files_path}}
|
||||
pidfile {{process_files_path}}/redis_async_broker.pid
|
||||
dir {{pid_path}}
|
||||
pidfile {{pid_path}}/redis_async_broker.pid
|
||||
port {{port}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
dbfilename redis_cache_dump.rdb
|
||||
dir {{process_files_path}}
|
||||
pidfile {{process_files_path}}/redis_cache.pid
|
||||
dir {{pid_path}}
|
||||
pidfile {{pid_path}}/redis_cache.pid
|
||||
port {{port}}
|
||||
maxmemory {{maxmemory}}mb
|
||||
maxmemory-policy allkeys-lru
|
||||
|
@ -1,4 +1,4 @@
|
||||
dbfilename redis_celery_broker.rdb
|
||||
dir {{process_files_path}}
|
||||
pidfile {{process_files_path}}/redis_celery_broker.pid
|
||||
dir {{pid_path}}
|
||||
pidfile {{pid_path}}/redis_celery_broker.pid
|
||||
port {{port}}
|
||||
|
@ -33,7 +33,7 @@ default_config = {
|
||||
'shallow_clone': True,
|
||||
}
|
||||
|
||||
folders_in_bench = ('apps', 'sites', 'config', 'logs', 'config/files')
|
||||
folders_in_bench = ('apps', 'sites', 'config', 'logs', 'config/pids')
|
||||
|
||||
def get_frappe(bench='.'):
|
||||
frappe = get_env_cmd('frappe', bench=bench)
|
||||
|
Loading…
x
Reference in New Issue
Block a user