This commit is contained in:
2017-12-15 19:44:52 +01:00
parent 7f2314c00b
commit a7de7ed80a
5 changed files with 36 additions and 11 deletions
+2 -1
View File
@@ -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'));
/*
*---------------------------------------------------------------