[development] How implement global variables that vary depending on the server (i.e. production, test, demo) within Drupal?
Carl Wiedemann
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>
> wrote:
> > 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
> production
> > server will have one web.xml file and the test server will have a
> different
> > web.xml file.
> >
> > How can I do something similar for global variables that vary depending
> on
> > 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
> www.jcfiala.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110317/d5b06cd2/attachment-0001.html
More information about the development
mailing list