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 <[email protected]> wrote:

> On Thu, Mar 17, 2011 at 11:40 AM, John Mitchell <[email protected]>
> 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
>

Reply via email to