2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 04:29:02 +00:00

[Minor] Renamed variable

This commit is contained in:
shreyas 2016-02-26 11:57:21 +05:30
parent 6797768572
commit 073bc1c0bd
5 changed files with 9 additions and 9 deletions

View File

@ -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)

View File

@ -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}}

View File

@ -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

View File

@ -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}}

View File

@ -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)