https://qiita.com/blues25/items/cbf7b372b1bdedf08c9a
$_SERVER[‘CI_ENV’]の値もしくはpublic/index.phpの定数ENVIRONMENTの値設定で行う。
デフォルトはdevelopment。
ちなみに$_SERVER[‘CI_ENV’]は apacheのSetEnvで設定できる。
<Directory "/var/www/html">
SetEnv CI_ENV development
</Directory>