From e8d5835f133548736a75ed946f22df53da6978e6 Mon Sep 17 00:00:00 2001 From: Steve Worley Date: Thu, 26 May 2022 13:07:34 +1000 Subject: [PATCH] Update to support `MARIADB_READREPLICA_HOSTS` --- images/bay-php/settings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/images/bay-php/settings.php b/images/bay-php/settings.php index 24970249a..af347f9cd 100755 --- a/images/bay-php/settings.php +++ b/images/bay-php/settings.php @@ -34,13 +34,13 @@ $databases['default']['default'] = $connection_info; -// If Lagoon defines the DB_READREPLICA_HOSTS we add this to the available +// If Lagoon defines the MARIADB_READREPLICA_HOSTS we add this to the available // database connections. This allows core services to offload some // queries to the replica. // // @see core/services.yml database.replica -if (getenv('DB_READREPLICA_HOSTS')) { - $replica_hosts = explode(' ', getenv('DB_READREPLICA_HOSTS')); +if (getenv('MARIADB_READREPLICA_HOSTS')) { + $replica_hosts = explode(' ', getenv('MARIADB_READREPLICA_HOSTS')); $replica_hosts = array_map('trim', $replica_hosts); // This allows --database=reader so Drush can be set to target the