From e201d18f3c44ccbacfe80c9826451c58e80f5a57 Mon Sep 17 00:00:00 2001 From: Shawn Kwang Date: Wed, 1 Nov 2017 15:23:04 -0500 Subject: [PATCH] Drupal: Add settings.local.php to main settings.php file. Added local settings to gitignore. --- drupal/.gitignore | 1 + drupal/sites/default/settings.php | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/drupal/.gitignore b/drupal/.gitignore index 5f8844c90f..2ef64e688d 100644 --- a/drupal/.gitignore +++ b/drupal/.gitignore @@ -1 +1,2 @@ sites/all/modules +sites/default/settings.local.php diff --git a/drupal/sites/default/settings.php b/drupal/sites/default/settings.php index baf84b02a2..584f118952 100644 --- a/drupal/sites/default/settings.php +++ b/drupal/sites/default/settings.php @@ -174,6 +174,18 @@ ini_set('upload_max_filesize', '8MB'); # 'theme_default' => 'minnelli', # 'anonymous' => 'Visitor', # ); -$conf = array( - 'maintenance_theme' => 'einstein', -); + +/** + * 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 (stream_resolve_include_path('settings.local.php')) { + include 'settings.local.php'; +}