Login
This commit is contained in:
+2
-1
@@ -11,6 +11,7 @@ include_once('../vendor/autoload.php');
|
||||
$dotenv = new Dotenv\Dotenv('../');
|
||||
$dotenv->load();
|
||||
|
||||
$dotenv->required(['DB_HOST', 'DB_NAME', 'DB_USER', 'DB_PASS', 'ENVIRONMENT']);
|
||||
|
||||
|
||||
/**
|
||||
@@ -67,7 +68,7 @@ $dotenv->load();
|
||||
*
|
||||
* NOTE: If you change these, also change the error_reporting() code below
|
||||
*/
|
||||
define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
|
||||
define('ENVIRONMENT', getenv('ENVIRONMENT'));
|
||||
|
||||
/*
|
||||
*---------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user