Skip to content

Instantly share code, notes, and snippets.

@adrianodias8
Created January 7, 2021 09:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianodias8/8902f5b40145536a2dcfd11b3f12acf3 to your computer and use it in GitHub Desktop.
Save adrianodias8/8902f5b40145536a2dcfd11b3f12acf3 to your computer and use it in GitHub Desktop.
Drupal Dev mode
# Local development services.
#
# To activate this feature, follow the instructions at the top of the
# 'example.settings.local.php' file, which sits next to this file.
parameters:
http.response.debug_cacheability_headers: true
twig.config:
debug: true
auto_reload: true
cache: false
services:
cache.backend.null:
class: Drupal\Core\Cache\NullBackendFactory
<?php
$settings['container_yamls']['0'] = './sites/default/services.yml';
$settings['container_yamls']['1'] = './sites/development.services.yml';
$settings['cache']['bins'] = [
'page' => 'cache.backend.null',
'dynamic_page_cache' => 'cache.backend.null',
'render' => 'cache.backend.null',
];
$config['system.logging']['error_level'] = 'verbose';
$config['system.performance']['css'] = ['preprocess' => false];
$config['system.performance']['js'] = ['preprocess' => false];
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment