Skip to content

Commit

Permalink
Makes redis host location configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyfw committed Sep 5, 2017
1 parent ecc762b commit 3f1de63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function createSettingsFile()
"\$settings['shepherd_token'] = getenv('SHEPHERD_TOKEN_FILE') ? file_get_contents(getenv('SHEPHERD_TOKEN_FILE')) : getenv('SHEPHERD_TOKEN');\n\n" .
"if (getenv('REDIS_ENABLED')) {\n" .
" \$settings['redis.connection']['interface'] = 'PhpRedis';\n" .
" \$settings['redis.connection']['host'] = 'redis';\n" .
" \$settings['redis.connection']['host'] = getenv('REDIS_HOST') ?: 'redis';\n" .
" \$settings['cache']['default'] = 'cache.backend.redis';\n\n" .
" // Always set the fast backend for bootstrap, discover and config, otherwise\n" .
" // this gets lost when redis is enabled.\n" .
Expand All @@ -152,7 +152,7 @@ public function createSettingsFile()
" if (!isset(\$GLOBALS['install_state'])) {\n" .
" \$settings['container_yamls'][] = 'modules/contrib/redis/example.services.yml';\n" .
" }\n" .
"}\n\n" .
"}\n" .
"/**\n * END SHEPHERD CONFIG\n */\n" .
"\n" .
"/**\n * START LOCAL CONFIG\n */\n" .
Expand Down

0 comments on commit 3f1de63

Please sign in to comment.