Very useful module, but...

I frequently use the backup_migrate module to move data from one environment to another. Unfortunately, there's no way that I can see to keep Environment Indicator's name and color data out of a typical backup.

This means that the user has to reset the environment name and color manually every time the database is synced through backup_migrate.

Comments

rajmataj’s picture

I second this.

mrfelton’s picture

Status: Active » Closed (works as designed)

The main point about environment indicator is that you control the settings per-environment through your settings.php file. There is no reason to have any data in the database at all, and even if you do it doesn't matter as you simply override it at the site level in settings.php.

modulist’s picture

You're right, mrfelton. It took me some time to find the instructions in the module's README.txt file. In case someone else runs into the same issue, I'm pasting a sample of the code I used:

Add the code below to the bottom of your environment's settings.php file. You'll want to modify this code for each environment:

/**
 * Environment indicator:
 */
 $conf['environment_indicator_text'] = 'STAGING';
 $conf['environment_indicator_color'] = 'rgba(0,102,102,0.7)';
 $conf['environment_indicator_enabled'] = TRUE;