diff --git a/include/library/Crunchbutton/App.php b/include/library/Crunchbutton/App.php index 62e71e3ef..54ee64174 100755 --- a/include/library/Crunchbutton/App.php +++ b/include/library/Crunchbutton/App.php @@ -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'])) {