I'm making a codeigniter website and i need to switch configs between production and development. By default Codeigniter searches for the var CI_ENV
in PHP's $_SERVER
superglobal. However when i'm trying to set my own with
$ CI_ENV=production
$ export CI_ENV
in my production server.
When i'm trying to access it from $_ENV
, $_SERVER
or getenv()
it's not there.
Why?