Advertising sustains the DA. Ads are hidden for members. Join today

Contributed modules documentation

Environment indicator

Table of Content #


Introduction #

This module will help you to keep sane while working on your different environments by adding a configurable color bar to each one of your environments. The Environment Indicator adds a coloured bar on the site informing you which environment you're currently in (Development, Staging, Production etc). This is incredibly useful if you have multiple environments for each of your sites, and like me, are prone to forgetting which version of the site you are currently looking at. This module can help you avoid making configuration changes to your live server by mistake by adding a coloured strip to the side of your site, clearly marking each version of the site. Hopefully your project has several of the following environments. By placing an indicator you will know with a glance where you are testing that last code, that you're about to configure the right environment, etc.


Name #

* Note that Drupal parses has stripped styles for font colors - please refer to values.

Environment/Tier Name Description Example colors (Background/Text)
Local Developer's desktop/workstation Local (#006600/#ffffff)
Virtual Machine VM hosted on developers desktop or possibly development server Virtual Machine (#006600/#ffffff)
Development Development server aka sandbox Development (#4caf50/#000000)
Integration CI build target, or for developer testing of side effects Integration (#4caf50/#000000)
Test/QA For functional, performance testing, Quality Assurance etc. Test/QA (#4caf50/#000000)
UAT User acceptance testing UAT (#fff176/#000000)
Stage/Pre-production Mirror of production environment Stage/Pre-production (#fff176/#000000)
Production/Live Serves end-users/clients Production/Live (#ef5350/#000000)

Configure #

Here is example configuration for version 4.0.x to be added to settings.php:

$config['environment_indicator.indicator']['name'] = 'Test/QA';
$config['environment_indicator.indicator']['bg_color'] = '#4caf50';
$config['environment_indicator.indicator']['fg_color'] = '#000000';

Configure Environment Indicator 6.x-1.x & 7.x-1.x

The Environment Indicator settings page allows you to modify some elements of the indicator's behaviour and appearance. Individual settings,

Configure Environment Indicator 7.x-2.x

Table of Content #

Guide maintainers

e0ipso's picture