Welcome Guest, Not a member yet? Register   Sign In
$_SERVER['CI_ENV'] -- where is and ENVIRONMENT this set?
#7

If you're running Apache, you can also set this in your .htaccess file, I believe.

Code:
SetEnv CI_ENV production

Additionally, you can just do some logic in the main index.php file to check the current $_SERVER['HTTP_HOST'] to determine which environment should be set.
Reply


Messages In This Thread
RE: $_SERVER['CI_ENV'] -- where is and ENVIRONMENT this set? - by kilishan - 06-11-2015, 10:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB