[development] How implement global variables that vary depending on the server (i.e. production, test, demo) within Drupal?
carl.wiedemann at gmail.com
Thu Mar 17 19:04:18 UTC 2011
You can use different settings.php files for each environment via Drupal's
multisite capabilities. See http://drupal.org/node/516608
On Thu, Mar 17, 2011 at 1:43 PM, John Fiala <jcfiala at gmail.com> wrote:
> On Thu, Mar 17, 2011 at 11:40 AM, John Mitchell <mitchelljj98 at gmail.com>
> > For java webapps within Apache Tomcat I use a web.xml file which contains
> > the global variables that are specific to that server so that the
> > server will have one web.xml file and the test server will have a
> > web.xml file.
> > How can I do something similar for global variables that vary depending
> > the server (i.e. production, test, demo) within Drupal?
> Well, I usually put those in the setting.php files. For one thing,
> anything you set as $conf['blah'] in settings.php will then be the
> value when the code does variable_get('blah') later on.
> John Fiala
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development