Browse Source

Merge pull request #122 from sparksp/fix/env_config

LARAVEL_ENV is not correctly translated into a config path
Taylor Otwell 13 years ago
parent
commit
320653e832
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/bootstrap/constants.php

+ 1 - 1
laravel/bootstrap/constants.php

@@ -62,7 +62,7 @@ constants($constants);
  * The environment is controlled by setting an environment
  * variable on the server running Laravel.
  */
-$environment = (isset($_SERVER['LARAVEL_ENV'])) ? $_SERVER['LARAVEL_ENV'] : '';
+$environment = (isset($_SERVER['LARAVEL_ENV'])) ? CONFIG_PATH.$_SERVER['LARAVEL_ENV'].'/' : '';
 
 constants(array('ENV_CONFIG_PATH' => $environment));