Last active
September 17, 2015 16:01
-
-
Save montrealist/f21e6430bbf25c5a990c to your computer and use it in GitHub Desktop.
This file contains 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
$whereami = dirname(__FILE__); | |
if ( preg_match('/htdocs/',$whereami) ) { // local | |
//print('I am localhost!'); exit; | |
define( 'WP_SITEURL', 'http://localhost/epicsky' ); /*TODO remove this */ | |
define( 'WP_HOME', 'http://localhost/epicsky' ); /*TODO remove this */ | |
}else if(preg_match('/liroca/',$whereami)) { // dev | |
define( 'WP_SITEURL', 'http://epicsky.liro.ca' ); | |
define( 'WP_HOME', 'http://epicsky.liro.ca' ); | |
}else { //prod | |
define( 'WP_SITEURL', 'http://epicsky.staging.wpengine.com' ); | |
define( 'WP_HOME', 'http://epicsky.staging.wpengine.com' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment