Skip to content

Instantly share code, notes, and snippets.

@damien
Created August 24, 2009 01:26
Show Gist options
  • Save damien/173574 to your computer and use it in GitHub Desktop.
Save damien/173574 to your computer and use it in GitHub Desktop.
Some helpful settings for WordPress development, to be appended to wp-config.php
<?php
/** Development settings.
*
* These are some customs settings that allow us to import arbitrary WordPress
* databases and run them within our development environment without any additional
* configuration. Append this to your regular wp-config.php file and customize as needed.
*
* @link http://gist.github.com/gists/173574
*/
/**
* Override, but do not overwrite the database values for, the SITE_URL setting.
*
* @link http://codex.wordpress.org/Editing_wp-config.php#WordPress_address_.28URL.29
*/
define('WP_SITEURL', 'http://sub-domain.your-test-site.tld');
/**
* Enable WordPress debug mode, which shows us more error messages and
* info than production installations.
*
* @link http://codex.wordpress.org/Editing_wp-config.php#Debug
*/
define('WP_DEBUG', true);
/**
* Save queries for analysis/debugging
*
* @link http://codex.wordpress.org/Editing_wp-config.php#Save_queries_for_analysis
*/
define('SAVEQUERIES', true);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment