Skip to content

Instantly share code, notes, and snippets.

@teckx5
Created May 20, 2015 15:00
Show Gist options
  • Save teckx5/dec4ef6fc83d1df5f634 to your computer and use it in GitHub Desktop.
Save teckx5/dec4ef6fc83d1df5f634 to your computer and use it in GitHub Desktop.
Drupal Environment Indicators to help visually manage Dev, Staging, and Production Servers
// Add to each environment settings.php file
// Local/Development Server
$conf['environment_indicator_overwrite'] = TRUE;
$conf['environment_indicator_overwritten_name'] = 'Local';
$conf['environment_indicator_overwritten_color'] = '#bb0000';
// Staging Server
$conf['environment_indicator_overwrite'] = TRUE;
$conf['environment_indicator_overwritten_name'] = 'Stage';
$conf['environment_indicator_overwritten_color'] = '#00bb00';
// Production Server
$conf['environment_indicator_overwrite'] = TRUE;
$conf['environment_indicator_overwritten_name'] = 'Production';
$conf['environment_indicator_overwritten_color'] = '#0000bb';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment