down arrowMenu

UNI Webtools: Resources for Web Developers

Oliver Davies: Include environment-specific settings files on Pantheon

Posted on Thursday, November 27th, 2014 by Anonymous

I was recently doing some work on a site hosted on Pantheon and came across an issue, for which part of the suggested fix was to ensure that the $base_url variable was explicitly defined within settings.php (this is also best practice on all Drupal sites).

The way that was recommended was by using a switch() function based on Pantheon's environment variable. For example:

Pages

Subscribe to UNI Webtools: Resources for Web Developers RSS