Closed (works as designed)
Project:
Environment Indicator
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2012 at 18:23 UTC
Updated:
20 Mar 2012 at 19:18 UTC
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
Comment #1
rajmataj commentedI second this.
Comment #2
mrfelton commentedThe 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.
Comment #3
modulist commentedYou'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: