example.settings.local.php 1.71 KB
Newer Older
1 2 3 4 5 6 7
<?php

/**
 * @file
 * Local development override configuration feature.
 *
 * To activate this feature, copy and rename it such that its path plus
8 9 10
 * filename is 'sites/example.com/settings.local.php', where example.com
 * is the name of your site. Then, go to the bottom of
 * 'sites/example.com/settings.php' and uncomment the commented lines that
11 12 13
 * mention 'settings.local.php'.
 */

14 15 16
/**
 * Enable local development services.
 */
17 18
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';

19 20 21
/**
 * Show all error messages, with backtrace information.
 */
22 23
$config['system.logging']['error_level'] = 'verbose';

24 25 26
/**
 * Disable CSS and JS aggregation.
 */
27 28 29
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;

30
/**
31 32 33 34 35 36
 * Disable the render cache.
 *
 * This setting disables the render cache by using the Null cache back-end
 * defined by the development.services.yml file above.
 *
 * Do not use this setting until after the site is installed.
37
 */
38 39
$settings['cache']['bins']['render'] = 'cache.backend.null';

40 41 42 43 44 45 46 47 48
/**
 * Allow test modules and themes to be installed.
 *
 * Drupal ignores test modules and themes by default for performance reasons.
 * During development it can be useful to install test extensions for debugging
 * purposes.
 */
$settings['extension_discovery_scan_tests'] = TRUE;

49 50 51 52 53 54 55 56 57
/**
 * Enable access to rebuild.php.
 *
 * This setting can be enabled to allow Drupal's php and database cached
 * storage to be cleared via the rebuild.php page. Access to this page can also
 * be gained by generating a query string from rebuild_token_calculator.sh and
 * using these parameters in a request to rebuild.php.
 */
$settings['rebuild_access'] = TRUE;