2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +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): def _generate_redis_config(template_name, context, bench):
template = env.get_template(template_name) template = env.get_template(template_name)
if "process_files_path" not in context: if "pid_path" not in context:
context["process_files_path"] = os.path.abspath(os.path.join(bench, "config", "files")) context["pid_path"] = os.path.abspath(os.path.join(bench, "config", "files"))
redis_config = template.render(**context) redis_config = template.render(**context)
write_config_file(bench, template_name, redis_config) write_config_file(bench, template_name, redis_config)

View File

@ -1,4 +1,4 @@
dbfilename redis_async_broker.rdb dbfilename redis_async_broker.rdb
dir {{process_files_path}} dir {{pid_path}}
pidfile {{process_files_path}}/redis_async_broker.pid pidfile {{pid_path}}/redis_async_broker.pid
port {{port}} port {{port}}

View File

@ -1,6 +1,6 @@
dbfilename redis_cache_dump.rdb dbfilename redis_cache_dump.rdb
dir {{process_files_path}} dir {{pid_path}}
pidfile {{process_files_path}}/redis_cache.pid pidfile {{pid_path}}/redis_cache.pid
port {{port}} port {{port}}
maxmemory {{maxmemory}}mb maxmemory {{maxmemory}}mb
maxmemory-policy allkeys-lru maxmemory-policy allkeys-lru

View File

@ -1,4 +1,4 @@
dbfilename redis_celery_broker.rdb dbfilename redis_celery_broker.rdb
dir {{process_files_path}} dir {{pid_path}}
pidfile {{process_files_path}}/redis_celery_broker.pid pidfile {{pid_path}}/redis_celery_broker.pid
port {{port}} port {{port}}

View File

@ -33,7 +33,7 @@ default_config = {
'shallow_clone': True, '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='.'): def get_frappe(bench='.'):
frappe = get_env_cmd('frappe', bench=bench) frappe = get_env_cmd('frappe', bench=bench)