Skip to content

Instantly share code, notes, and snippets.

@lrobeson
Created September 5, 2013 21:12
Show Gist options
  • Save lrobeson/6456240 to your computer and use it in GitHub Desktop.
Save lrobeson/6456240 to your computer and use it in GitHub Desktop.
Set useful Drupal development environment variables in settings.php
/*
Set some useful development environment variables
*/
# change site name
$conf['site_name'] = 'SITENAME LOCAL';
# turn off caching & aggregation
$conf['cache'] = FALSE;
$conf['block_cache'] = FALSE;
$conf['preprocess_css'] = FALSE;
$conf['preprocess_js'] = FALSE;
# toggle module settings
# $conf['apachesolr_read_only'] = 1;
# $conf['apc_enable'] = FALSE;
# enable developer modules
$conf['devel_enable'] = TRUE;
$conf['devel_themer_enable'] = TRUE;
# display all error messages
$conf['error_level'] = 2;
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
# intercept emails using Devel
$conf['mail_system'] = array(
'default-system' => 'DevelMailLog',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment