Skip to content

Instantly share code, notes, and snippets.

@fazni
Last active June 2, 2020 16:30
Show Gist options
  • Save fazni/7d4f860df08f5ccffa38c1bd1be9e9ba to your computer and use it in GitHub Desktop.
Save fazni/7d4f860df08f5ccffa38c1bd1be9e9ba to your computer and use it in GitHub Desktop.
D8/D9 - settings.local.php
// Logging.
$config['system.logging']['error_level'] = 'verbose';
$config['dblog.settings']['row_limit'] = 1000;
// Temp files.
$config['system.file']['path']['temporary'] = '/tmp';
// Aggregation.
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
$config['system.performance']['css']['gzip'] = FALSE;
$config['system.performance']['js']['gzip'] = FALSE;
// Disable the render cache.
$settings['cache']['bins']['render'] = 'cache.backend.null';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
$settings['cache']['bins']['discovery'] = 'cache.backend.null';
$settings['cache']['bins']['null'] = 'cache.backend.null';
$settings['cache']['bins']['data'] = 'cache.backend.null';
/**
* 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;
/**
* 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;
// PHP settings
memory_limit = 1024M
max_execution_time = 120
error_reporting = E_ALL
display_errors = TRUE
display_startup_errors = TRUE
html_errors = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment