added my local server
This commit is contained in:
parent
0f34306ef2
commit
7fe8d7c329
@ -40,10 +40,9 @@ class Crunchbutton_App extends Cana_App {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// db by hostname
|
// db by hostname
|
||||||
// anything local
|
// anything local
|
||||||
if (preg_match('/localhost$/',$_SERVER['SERVER_NAME'])) {
|
if (preg_match('/localhost$|^(crunch|cockpit|cockpitla).dev$/',$_SERVER['SERVER_NAME'])) {
|
||||||
$db = 'local';
|
$db = 'local';
|
||||||
// any one of our cull live urls, or staging prefixes
|
// 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'])) {
|
} elseif (preg_match('/^cockpit.la|cbtn.io|_DOMAIN_|cockpit._DOMAIN_|spicywithdelivery.com|(staging.(cockpit.la|crunchr.co))$/',$_SERVER['SERVER_NAME'])) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user