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

711 - Drupal: add default services.local.yml for local environment. #712

Closed
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
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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')) . '$';

Expand All @@ -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';
1 change: 1 addition & 0 deletions src/drupal8/harness/config/confd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down