Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace REDIS_PORT to REDIS_SERVICE_PORT #1263

Merged
merged 1 commit into from
Sep 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
if (getenv('LAGOON') && (file_exists($app_root . '/modules/contrib/redis') || file_exists($app_root . 'modules/redis')) && extension_loaded('redis')) {
$settings['redis.connection']['interface'] = 'PhpRedis';
$settings['redis.connection']['host'] = getenv('REDIS_HOST') ?: 'redis';
$settings['redis.connection']['port'] = 6379;
$settings['redis.connection']['port'] = getenv('REDIS_SERVICE_PORT') ?: '6379';

$settings['cache_prefix']['default'] = getenv('LAGOON_PROJECT') . '_' . getenv('LAGOON_GIT_SAFE_BRANCH');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
// if (getenv('LAGOON')){
// $settings['redis.connection']['interface'] = 'PhpRedis';
// $settings['redis.connection']['host'] = getenv('REDIS_HOST') ?: 'redis';
// $settings['redis.connection']['port'] = 6379;
// $settings['redis.connection']['port'] = getenv('REDIS_SERVICE_PORT') ?: '6379';
//
// // HINT: Uncomment in order to enable Redis
// // # Do not set the cache during installations of Drupal
Expand Down
2 changes: 1 addition & 1 deletion docs/using_lagoon/drupal/services/redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The Drupal 8 config is largely stock. Notably, redis is disabled while drupal is
if (getenv('LAGOON')){
$settings['redis.connection']['interface'] = 'PhpRedis';
$settings['redis.connection']['host'] = getenv('REDIS_HOST') ?: 'redis';
$settings['redis.connection']['port'] = 6379;
$settings['redis.connection']['port'] = getenv('REDIS_SERVICE_PORT') ?: '6379';
$settings['cache_prefix']['default'] = getenv('LAGOON_PROJECT') . '_' . getenv('LAGOON_GIT_SAFE_BRANCH');

// Do not set the cache during installations of Drupal
Expand Down
2 changes: 1 addition & 1 deletion tests/files/drupal8-mariadb/web/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
if (getenv('LAGOON')){
$settings['redis.connection']['interface'] = 'PhpRedis';
$settings['redis.connection']['host'] = getenv('REDIS_HOST') ?: 'redis';
$settings['redis.connection']['port'] = getenv('REDIS_PORT') ?: '6379';
$settings['redis.connection']['port'] = getenv('REDIS_SERVICE_PORT') ?: '6379';

// # Do not set the cache during installations of Drupal
// if (!drupal_installation_attempted()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
if (getenv('LAGOON')){
$settings['redis.connection']['interface'] = 'PhpRedis';
$settings['redis.connection']['host'] = getenv('REDIS_HOST') ?: 'redis';
$settings['redis.connection']['port'] = getenv('REDIS_PORT') ?: '6379';
$settings['redis.connection']['port'] = getenv('REDIS_SERVICE_PORT') ?: '6379';

// # Do not set the cache during installations of Drupal
// if (!drupal_installation_attempted()) {
Expand Down