Pass CI_ENVIRONMENT via Apache

This commit is contained in:
2023-03-24 22:19:40 -04:00
parent 2ed896e5b1
commit 1949c72c3c
2 changed files with 2 additions and 1 deletions
+2
View File
@@ -2,6 +2,8 @@
ServerAdmin works@chiefsoft.com
ServerName blogdata.mermsemr.com
DocumentRoot /var/www/html/public
PassEnv CI_ENVIRONMENT
<Directory /var/www/html>
Options Indexes FollowSymLinks
-1
View File
@@ -473,7 +473,6 @@ class CodeIgniter
protected function detectEnvironment()
{
// Make sure ENVIRONMENT isn't already set by other means.
$_SERVER['CI_ENVIRONMENT'] = getenv('CI_ENVIRONMENT');
if (! defined('ENVIRONMENT')) {
define('ENVIRONMENT', $_SERVER['CI_ENVIRONMENT'] ?? 'production');
}