Consistent naming scheme; memcached_host -> memcached_hostname

environment.sh uses hostname for everything, and both environment and
credentials provide a default of 'memcached', so this should also be one less
variable to care about.
This commit is contained in:
Erik Berg 2019-11-18 15:22:12 +00:00
parent a1f7f967e3
commit f5fc0871fc
2 changed files with 2 additions and 2 deletions

View File

@ -16,6 +16,6 @@ postgresql_image: "postgres:{{postgresql_version}}"
memcached_image: "memcached"
memcached_version: "alpine"
memcached_host: "memcached"
memcached_hostname: "memcached"
memcached_port: "11211"

View File

@ -26,7 +26,7 @@ CHANNEL_LAYERS = {
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '{}:{}'.format("{{ memcached_host }}", "{{ memcached_port }}")
'LOCATION': '{}:{}'.format("{{ memcached_hostname }}", "{{ memcached_port }}")
},
'ephemeral': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',