From e99b0393be88d01b4b38166b09fc23716e83efa8 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Thu, 7 Jul 2022 13:39:58 +0200
Subject: [PATCH] Define Redis settings at the very end

---
 templates/settings.local.php.twig | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/templates/settings.local.php.twig b/templates/settings.local.php.twig
index 0e0f83b..6262125 100644
--- a/templates/settings.local.php.twig
+++ b/templates/settings.local.php.twig
@@ -11,13 +11,8 @@ $config['config_auto_export.settings']['enabled'] = {{ live ? 'TRUE':  'FALSE' }
 $settings['extension_discovery_scan_tests'] = {{ live ? 'FALSE' : 'TRUE' }};
 $settings['rebuild_access'] = {{ live ? 'FALSE' : 'TRUE' }};
 $settings['skip_permissions_hardening'] = {{ live ? 'FALSE' : 'TRUE' }};
-
-$settings['redis.connection']['interface'] = 'PhpRedis';
-$settings['redis.connection']['host'] = 'redis';
-$settings['cache']['default'] = 'cache.backend.redis';
-$settings['container_yamls'][] = 'modules/redis/example.services.yml';
-$settings['queue_default'] = 'queue.redis';
 {% if not live %}
+
 assert_options(ASSERT_ACTIVE, TRUE);
 \Drupal\Component\Assertion\Handle::register();
 $settings['container_yamls'][] = __DIR__ . '/development.services.yml';
@@ -25,3 +20,9 @@ $settings['cache']['bins']['render'] = 'cache.backend.null';
 $settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
 $config['advagg.settings']['enabled'] = FALSE;
 {% endif %}
+
+$settings['redis.connection']['interface'] = 'PhpRedis';
+$settings['redis.connection']['host'] = 'redis';
+$settings['cache']['default'] = 'cache.backend.redis';
+$settings['container_yamls'][] = 'modules/redis/example.services.yml';
+$settings['queue_default'] = 'queue.redis';
-- 
GitLab