[support] Differenciating dev and prod site

Carl Wiedemann carl.wiedemann at gmail.com
Sun Aug 28 17:26:49 UTC 2011


I don't recommend making the change to page.tpl.php since it won't be
compatible with caching.

Carl Wiedemann
Website design and development consulting
carl.wiedemann at gmail.com | skype: c4rlww



On Sun, Aug 28, 2011 at 10:08 AM, Buratino <x9nx at mail.ru> wrote:

>
>
>
> 28 августа 2011, 20:57 от Sébastien Hinderer <
> Sebastien.Hinderer at ens-lyon.org>:
>
>   Dear all,
>
> I'm administrating a site for which I run several development version:
> one private on my laptop, just for me, one also on the same machine as
> the production version, for public testing...
>
> I'm wondering whether you guys know a way to show something on the pages
> that make it clear that one is browsing a dev version rather than the
> production site.
> The algorithm could be something like this:
> if ip=PROD_IP and vhost=PROD_VHOST
> then production site
> else dev site
>
> So the feature should require no database change, so that the different
> versions of the site can be differenciated from each other even after a
> database synchronisation.
> Any suggestion warmly appreciated.
> Thanks,
> Sebastien.
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
> There is a http://drupal.org/project/environment module, i didn't test it
> for D7 though.
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110828/9f2a7e4a/attachment.html 


More information about the support mailing list