first commit
This commit is contained in:
Executable
+21
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
if(! defined('ENVIRONMENT') )
|
||||
{
|
||||
$domain = strtolower($_SERVER['HTTP_HOST']);
|
||||
|
||||
switch($domain) {
|
||||
case 'mysite.com' :
|
||||
define('ENVIRONMENT', 'production');
|
||||
break;
|
||||
|
||||
case 'stage.mysite.com' :
|
||||
//our staging server
|
||||
define('ENVIRONMENT', 'staging');
|
||||
break;
|
||||
|
||||
default :
|
||||
define('ENVIRONMENT', 'development');
|
||||
break;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user