diff --git a/src/drupal8/application/overlay/docroot/sites/default/services.local.yml.twig b/src/drupal8/application/overlay/docroot/sites/default/services.local.yml.twig new file mode 100644 index 000000000..fe38367c2 --- /dev/null +++ b/src/drupal8/application/overlay/docroot/sites/default/services.local.yml.twig @@ -0,0 +1,9 @@ +parameters: + twig.config: + debug: true + auto_reload: true + cache: false + http.response.debug_cacheability_headers: true +services: + cache.backend.null: + class: Drupal\Core\Cache\NullBackendFactory diff --git a/src/drupal8/application/overlay/docroot/sites/default/settings.local.php.twig b/src/drupal8/application/overlay/docroot/sites/default/settings.local.php.twig index eb2a82647..273ca9860 100644 --- a/src/drupal8/application/overlay/docroot/sites/default/settings.local.php.twig +++ b/src/drupal8/application/overlay/docroot/sites/default/settings.local.php.twig @@ -6,7 +6,7 @@ $settings['hash_salt'] = getenv('DRUPAL_SALT'); $config_directories['sync'] = '../config/sync'; -$databases['default']['default'] = array ( +$databases['default']['default'] = [ 'database' => getenv('DB_NAME'), 'username' => getenv('DB_USER'), 'password' => getenv('DB_PASS'), @@ -15,7 +15,7 @@ $databases['default']['default'] = array ( 'port' => '3306', 'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql', 'driver' => 'mysql', -); +]; $settings['trusted_host_patterns'][] = '^' . preg_quote(getenv('APP_HOST')) . '$'; @@ -26,3 +26,9 @@ $settings['trusted_host_patterns'][] = '^' . preg_quote(getenv('APP_HOST')) . '$ $config['system.performance']['css']['preprocess'] = FALSE; $config['system.performance']['js']['preprocess'] = FALSE; {% endif %} + +// Load the local services. +$settings['container_yamls'][] = $app_root . '/' . $site_path . '/services.local.yml'; + +// Uncomment the following line to disable the render cache bin. +// $settings['cache']['bins']['render'] = 'cache.backend.null'; \ No newline at end of file diff --git a/src/drupal8/harness/config/confd.yml b/src/drupal8/harness/config/confd.yml index 7f31b3a33..723c8e5d2 100644 --- a/src/drupal8/harness/config/confd.yml +++ b/src/drupal8/harness/config/confd.yml @@ -60,6 +60,7 @@ confd('harness:/'): - { src: helm/qa/Chart.yaml } # harness-drupal templates - { src: application/overlay/docroot/sites/default/settings.local.php } + - { src: application/overlay/docroot/sites/default/services.local.yml } - { src: application/overlay/phpcs.xml } - { src: application/overlay/phpunit.xml } - { src: application/skeleton/behat.yml }