added my local server

This commit is contained in:
Daniel Camargo 2014-11-25 12:09:11 -02:00
parent 0f34306ef2
commit 7fe8d7c329

View File

@ -40,10 +40,9 @@ class Crunchbutton_App extends Cana_App {
}
}
// db by hostname
// anything local
if (preg_match('/localhost$/',$_SERVER['SERVER_NAME'])) {
if (preg_match('/localhost$|^(crunch|cockpit|cockpitla).dev$/',$_SERVER['SERVER_NAME'])) {
$db = 'local';
// any one of our cull live urls, or staging prefixes
} elseif (preg_match('/^cockpit.la|cbtn.io|_DOMAIN_|cockpit._DOMAIN_|spicywithdelivery.com|(staging.(cockpit.la|crunchr.co))$/',$_SERVER['SERVER_NAME'])) {