---
url: 'https://dxpr.com/drupal-blog/module-spotlight-1-environment-indicator'
title: 'Module Spotlight #2: Environment Indicator | DXPR'
author:
  name: Jurriaan
  url: 'https://dxpr.com/users/jurriaan'
date: '2023-11-13T18:52:17+00:00'
updated: '2023-11-13T18:54:39+00:00'
copyright: 'Copyright DXPR. All rights reserved.'
type: article
summary: "Configuration > System > Backup and Migrate > Restore database..... Did I just load my database export on the live website? oopsIf the stress of pressing the wrong button on a live website is familiar to you, you need the Environment Indicator module! On large Drupal projects you will often be using multiple environments. Local development, online development, test, acceptance and finally 'production'."
tags:
  - 1.0.12
  - 'drupal development. module spotlight'
  - DTAP
  - 'environment indicator'
  - newsletter
  - OTAP
  - planet
  - staging
image: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
published: true
og:
  site_name: DXPR
  updated_time: '2023-11-13T18:54:39+0000'
  'image:alt': 'Module Spotlight #2: Environment Indicator'
schema:
  '@context': 'https://schema.org'
  '@graph':
    -
      mainEntity: {  }
    -
      '@type': BlogPosting
      headline: 'Module Spotlight #2: Environment Indicator'
      description: "Configuration > System > Backup and Migrate > Restore database..... Did I just load my database export on the live website? oopsIf the stress of pressing the wrong button on a live website is familiar to you, you need the Environment Indicator module! On large Drupal projects you will often be using multiple environments. Local development, online development, test, acceptance and finally 'production'."
      about:
        - 'drupal development. module spotlight'
        - DTAP
        - 'environment indicator'
        - newsletter
        - OTAP
        - planet
        - staging
      image:
        '@type': ImageObject
        url: 'https://dxpr.com/sites/default/files/2023-11/sooper6-blog-header-environment-indicator.jpg'
        width: '1920'
        height: '679'
      datePublished: '2023-11-13T18:52:17+0000'
      dateModified: '2023-11-13T18:54:39+0000'
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
        url: 'https://dxpr.com/'
        logo:
          '@type': ImageObject
          url: 'https://dxpr.com/themes/custom/dxpr_com/dxpr-logo-dark.svg'
          width: '1348'
          height: '501'
      mainEntityOfPage: 'https://dxpr.com/drupal-blog/module-spotlight-1-environment-indicator'
    -
      '@type': WebPage
      '@id': 'https://dxpr.com/drupal-blog/module-spotlight-1-environment-indicator'
      description: "Configuration > System > Backup and Migrate > Restore database..... Did I just load my database export on the live website? oopsIf the stress of pressing the wrong button on a live website is familiar to you, you need the Environment Indicator module! On large Drupal projects you will often be using multiple environments. Local development, online development, test, acceptance and finally 'production'."
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
      inLanguage: en
---
[Blog](/blog) / Module Spotlight #2: Environment Indicator

# Module Spotlight #2: Environment Indicator

   **Jurriaan** 13 November 2023

### Configuration &gt; System &gt; Backup and Migrate &gt; Restore database..... Did I just load my database export on the live website? oops

If the stress of pressing the wrong button on a live website is familiar to you, you need the [Environment Indicator](https://www.drupal.org/project/environment_indicator) module! On large Drupal projects you will often be using multiple environments. Local development, online [development, test, acceptance](https://en.wikipedia.org/wiki/Development,_testing,_acceptance_and_production) and finally 'production'. Environments are easily mixed up as they probably look identical in every way except the url in the address bar.

To help you *keep sane* the environment indicator module will tell you clearly which environment you are currently looking at. Until recently it showed a, frankly rather unpretty, vertical bar adjacent to your page. With a recent update the module got an aesthetic make-over. Now the environment is indicated by coloring the toolbar and adding a label to the toolbar. This is integrated seamlessly with a number of different toolbars, including my favorite: Admin Menu toolbar. I've been testing this version of Environment Indicator for a few weeks now and I really like it. Using a green toolbar on dev, pink on test and red on the production environment I'm always 100% confident about which environment I'm working in. Even after importing a product database into a local development installation...

## Regex matching your hostname

If you move content or configuration between your environments by copying over the database, in previous versions this would overwrite your setting environment setting. The latest branch of the module is smarter: it supports Hostname matching to make your site aware of its environment even if after copying around databases:

By entering a regular expression in the Hostname field: .\*\\.dev.\* the module knows that any environment that lives on a .dev hostname should get the green color and "Development" label. I develop sooperthemes.com on a hostname called sooper6.dev, so I get a green label. If I create a new environment at sooper6-jQuery2.dev it will automatically get the development indication as well.

 <a class="a2a_button a2a_button_x"></a><a class="a2a_button a2a_button_linkedin"></a>