Skip to content

Commit

Permalink
Merge branch 'develop' into add-drush-to-require
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang Turner authored and Yang Turner committed Jan 5, 2023
2 parents c363d57 + a972198 commit 75a5801
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ web/sites/*/files
docroot/sites/*/files

# Ignore local Drupal configuration
services.local.yml
settings.local.php
settings.ddev.php

Expand Down
17 changes: 17 additions & 0 deletions docroot/sites/default/default.services.local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# @file
# Local development services.
#
# Copy this file to 'services.local.yml' and customize for your development needs.

services:
cache.backend.null:
class: Drupal\Core\Cache\NullBackendFactory
parameters:
# The debug cacheability header can get very long and cause HTTP 500 errors. If this
# happens on your site, change this to false.
http.response.debug_cacheability_headers: true
twig.config:
debug: true
auto_reload: true
# This is important if you're using interactive debugging with Twig templates.
cache: true
19 changes: 16 additions & 3 deletions docroot/sites/default/default.settings.local.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@
* Copy this file to 'settings.local.php' and customize for your development needs.
*/

// To simulate other config split environments, change "development" to either "staging"
// or "production", then run:
// To simulate other config split environments, uncomment and edit these lines, then run:
// drush cr && drush cim -y
# $config['config_split.config_split.development']['status'] = TRUE;
# $config['config_split.config_split.development']['status'] = FALSE;
# $config['config_split.config_split.test']['status'] = FALSE;
# $config['config_split.config_split.production']['status'] = TRUE;

// Customizable development services file.
$settings['container_yamls'][] = DRUPAL_ROOT . '/' . $site_path . '/services.local.yml';

// Disable caching.
$settings['cache']['bins']['render'] = 'cache.backend.null';
$settings['cache']['bins']['page'] = 'cache.backend.null';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';

// Disable CSS and JS aggregation.
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
11 changes: 1 addition & 10 deletions docroot/sites/default/settings.ddev-overrides.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,12 @@
assert_options(ASSERT_ACTIVE, TRUE);
Handle::register();

// Enable local development services.
// Enable local development services, including the null cache backend.
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';

// Show all error messages, with backtrace information.
$config['system.logging']['error_level'] = 'verbose';

// Disable caching.
$settings['cache']['bins']['render'] = 'cache.backend.null';
$settings['cache']['bins']['page'] = 'cache.backend.null';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';

// Disable CSS and JS aggregation.
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;

// Allow test modules and themes to be installed.
$settings['extension_discovery_scan_tests'] = FALSE;

Expand Down

0 comments on commit 75a5801

Please sign in to comment.