Skip to content

Instantly share code, notes, and snippets.

@7rin0
Last active September 26, 2016 08:19
Show Gist options
  • Save 7rin0/f434f5eb43df8b2e8b2d7591016e1264 to your computer and use it in GitHub Desktop.
Save 7rin0/f434f5eb43df8b2e8b2d7591016e1264 to your computer and use it in GitHub Desktop.
Drupal 8 - Dev environment
# Local development services.
# /drupal8/sites/development.services.yml
services:
cache.backend.null:
class: Drupal\Core\Cache\NullBackendFactory
parameters:
twig.config:
debug: true
auto_reload: true
cache: false
<?php
/**
* @file
* Local development override configuration feature.
* /drupal8/sites/default/settings.local.php
*/
assert_options(ASSERT_ACTIVE, TRUE);
\Drupal\Component\Assertion\Handle::register();
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
$config['system.logging']['error_level'] = 'verbose';
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
$settings['cache']['bins']['render'] = 'cache.backend.null';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
$settings['extension_discovery_scan_tests'] = TRUE;
$settings['rebuild_access'] = TRUE;
$settings['skip_permissions_hardening'] = TRUE;
<?php
/**
* @file
* Local development override configuration feature.
* /drupal8/sites/default/settings.php
*/
########## (...) ##########
if (file_exists(__DIR__ . '/settings.local.php')) {
include __DIR__ . '/settings.local.php';
}
########## (...) ##########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment