Respect LARAVEL_ENV variable

Laravel **should** respect `LARAVEL_ENV` variable when running through CLI
This commit is contained in:
Pavel Puchkin 2013-01-07 01:20:46 +11:00
parent 05cb1ea5ad
commit 77679a5659
1 changed files with 3 additions and 3 deletions

View File

@ -171,9 +171,9 @@
if (Request::cli())
{
$environment = get_cli_option('env');
$environment = get_cli_option('env', getenv('LARAVEL_ENV'));
if ( ! isset($environment))
if (empty($environment))
{
$environment = Request::detect_env($environments, gethostname());
}
@ -240,4 +240,4 @@
foreach ($bundles as $bundle => $config)
{
Bundle::register($bundle, $config);
}
}