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 | |
if (file_exists(dirname(__FILE__) . '/wp-config-local.php')) { | |
// If File exists include Config for Dev-Server Environment | |
include(dirname(__FILE__) . '/wp-config-local.php'); | |
} elseif (file_exists(dirname(__FILE__) . '/wp-config-staging.php')) { | |
// If File exists include Config for Staging-Server Environment | |
include(dirname(__FILE__) . '/wp-config-staging.php'); |
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 | |
/* | |
* One WordPress wp-config.php to rule them all: Development-, Staging- and Live-Server. | |
*/ | |
// Define Environments | |
$environments = array( | |
'dev' => 'server.dev', | |
'staging' => 'staging.server.com', | |
'live' => 'www.server.com', |
OlderNewer