Skip to content

Instantly share code, notes, and snippets.

@bangpound
Created May 24, 2016 15:03
Show Gist options
  • Save bangpound/ac7d202a2ea7a7f232005fc0d517ffb3 to your computer and use it in GitHub Desktop.
Save bangpound/ac7d202a2ea7a7f232005fc0d517ffb3 to your computer and use it in GitHub Desktop.
commit 062c7a626df9f1c832738cfa00e33f143be3f414
Author: Benjamin Doherty <[email protected]>
Date: Tue May 24 09:39:24 2016 -0500
support dynamic site group.
diff --git a/docroot/sites/default/settings.php b/docroot/sites/default/settings.php
index 1b6c720..c6da989 100644
--- a/docroot/sites/default/settings.php
+++ b/docroot/sites/default/settings.php
@@ -719,7 +719,7 @@
// settings.php for development on your local workstation, set $db_url
// (Drupal 5 or 6) or $databases (Drupal 7 or 8) as described in comments above.
if (file_exists('/var/www/site-php')) {
- require('/var/www/site-php/communityfirst/communityfirst-settings.inc');
+ require('/var/www/site-php/'.getenv('AH_SITE_GROUP').'/'.getenv('AH_SITE_GROUP').'-settings.inc');
}
switch (getenv('AH_SITE_ENVIRONMENT')) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment