Last active
September 26, 2016 08:19
-
-
Save 7rin0/f434f5eb43df8b2e8b2d7591016e1264 to your computer and use it in GitHub Desktop.
Drupal 8 - Dev environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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