Skip to content

Instantly share code, notes, and snippets.

@welly
Forked from benclark/local.settings.php
Created April 11, 2014 16:14
Show Gist options
  • Save welly/10481204 to your computer and use it in GitHub Desktop.
Save welly/10481204 to your computer and use it in GitHub Desktop.
<?php
/**
* @file
* local.settings.php
*
* This settings file is intended to contain settings specific to a local
* development environment, by overriding options set in settings.php.
*
* Include this file from your regular settings.php by including this at the
* bottom:
*
* @include('local.settings.php');
*
* Placing this at the very end of settings.php will allow you override all
* options that are set there. Prefixing it with the @ suppresses warnings if
* the local.settings.php file is missing, so you can commit this to your repo.
*/
$db_url = 'mysqli://user:pass@localhost/dbname';
// Allow anyone to run update.php, so that you don't have to log in with uid=1
// to do so
$update_free_access = TRUE;
// Set error reporting level to ignore notices and deprecated warnings. These
// should be turned back on during development to clean up any code that
// generates them.
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
// Note that these options can also be moved into index.php, so that errors
// that occur before settings.php is processed will also be reported.
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
// Save email messages to the log instead of sending them out. This is to
// prevent accidental email sends from a development site.
// Make sure you adjust this value if the Devel module is located elsewhere
$conf['smtp_library'] = 'sites/all/modules/contrib/devel/devel.module';
// Disable Secure Pages and Secure Site module functionality
$conf['securepages_enable'] = 0;
$conf['securesite_enabled'] = 0;
// Use a test payment gateway to prevent real transactions
$conf['uc_payment_credit_gateway'] = 'test_gateway';
// Lower the search indexing per cron run to prevent long cron runs
$conf['search_cron_limit'] = '10';
// Use the core cache, instead of memcache or any others
$conf['cache_inc'] = './includes/cache.inc';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment