Created
February 10, 2015 16:08
-
-
Save joshuaadrian/3bfd2350235cf461f296 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* ABSOLUTE PATH */ | |
if ( !defined( 'ABSPATH' ) ) : | |
define('ABSPATH', dirname(__FILE__) . '/'); | |
endif; | |
/* DB CREDS */ | |
if ( file_exists( ABSPATH . 'wp-config.local.php' ) ) : | |
require_once( 'wp-config.local.php' ); | |
elseif ( strpos( $_SERVER['SERVER_NAME'], "my-staging-server.com" ) !== false ) : | |
define('DB_NAME', 'name'); | |
define('DB_USER', 'user'); | |
define('DB_PASSWORD', 'password'); | |
define('DB_HOST', 'host'); | |
define('WP_ENV', 'development'); | |
elseif ( strpos( $_SERVER['SERVER_NAME'], "my-production-server.com" ) !== false ) : | |
define('DB_NAME', 'name'); | |
define('DB_USER', 'user'); | |
define('DB_PASSWORD', 'password'); | |
define('DB_HOST', 'host'); | |
define('WP_ENV', 'production'); | |
endif; | |
define('AUTH_KEY', '33B#8jmAJN/jjNjs@KdM'); | |
define('SECURE_AUTH_KEY', 'KxQTXOQaMYOzqTt/zpY+'); | |
define('LOGGED_IN_KEY', ')MY4_U6K@BcjDCws*cM&'); | |
define('NONCE_KEY', 'y 9bgJGDW56T-!6*7CFj'); | |
define('AUTH_SALT', ')TGr494$6Sg9WvwNxRUE'); | |
define('SECURE_AUTH_SALT', 'YZQSLgEKYLn5#4hyg*!Z'); | |
define('LOGGED_IN_SALT', 'd82bf1KI7ShH1m)c/V$4'); | |
define('NONCE_SALT', '&GaxQ90Q-KFLKB49+#3S'); | |
$table_prefix = 'wp_'; | |
/* SET DEBUGGING */ | |
if ( defined( 'WP_ENV' ) && WP_ENV == 'development' ) : | |
define('WP_DEBUG', true); | |
define('SCRIPT_DEBUG', true); | |
define('WP_DEBUG_LOG', true); | |
define('WP_DEBUG_DISPLAY', false); | |
@ini_set('display_errors',0); | |
define('SAVEQUERIES', true); | |
endif; | |
/* ENCODING */ | |
define('DB_CHARSET', 'utf8'); | |
define('DB_COLLATE', ''); | |
define('WP_MEMORY_LIMIT', '128M'); | |
define('FS_METHOD', 'direct'); | |
define('FS_CHMOD_DIR', (0705 & ~ umask())); | |
define('FS_CHMOD_FILE', (0604 & ~ umask())); | |
/* MISC */ | |
define('WPLANG', ''); | |
require_once(ABSPATH . 'wp-settings.php'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment