diff options
Diffstat (limited to 'share/templater/drupal-composer/files/settings.loader.snippet')
-rw-r--r-- | share/templater/drupal-composer/files/settings.loader.snippet | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/share/templater/drupal-composer/files/settings.loader.snippet b/share/templater/drupal-composer/files/settings.loader.snippet new file mode 100644 index 0000000..553ada5 --- /dev/null +++ b/share/templater/drupal-composer/files/settings.loader.snippet @@ -0,0 +1,28 @@ + +/** + * Load custom default configuration, if available. + * + * Use settings.local.php to override variables on secondary (staging, + * development, etc) installations of this site. Typically used to disable + * caching, JavaScript/CSS compression, re-routing of outgoing emails, and + * other things that should not happen on development and testing sites. + * + * Keep this code block at the end of this file to take full effect. + */ +if (file_exists($app_root . '/' . $site_path . '/settings.custom.php')) { + include $app_root . '/' . $site_path . '/settings.custom.php'; +} + +/** + * Load local development override configuration, if available. + * + * Use settings.local.php to override variables on secondary (staging, + * development, etc) installations of this site. Typically used to disable + * caching, JavaScript/CSS compression, re-routing of outgoing emails, and + * other things that should not happen on development and testing sites. + * + * Keep this code block at the end of this file to take full effect. + */ +if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) { + include $app_root . '/' . $site_path . '/settings.local.php'; +} |