Set useful development environment variables in settings.php

Public

Turn off caching, turn off css/js aggregation, turn on error reporting, enable Devel module(s), reroute emails, adjust environment-specific module settings.

Get raw version
php
  1. /*
  2. Set some useful development environment variables
  3. */
  4.  
  5. # change site name
  6. $conf['site_name'] = 'SITENAME LOCAL';
  7.  
  8. # turn off caching & aggregation
  9. $conf['cache'] = FALSE;
  10. $conf['block_cache'] = FALSE;
  11. $conf['preprocess_css'] = FALSE;
  12. $conf['preprocess_js'] = FALSE;
  13.  
  14. # toggle module settings
  15. # $conf['apachesolr_read_only'] = 1;
  16. # $conf['apc_enable'] = FALSE;
  17.  
  18. # enable developer modules
  19. $conf['devel_enable'] = TRUE;
  20. $conf['devel_themer_enable'] = TRUE;
  21.  
  22. # display all error messages
  23. $conf['error_level'] = 2;
  24. ini_set('display_errors', TRUE);
  25. ini_set('display_startup_errors', TRUE);
  26.  
  27. # intercept emails using Devel
  28. $conf['mail_system'] = array(
  29. 'default-system' => 'DevelMailLog',
  30. );