Skip to content

Commit

Permalink
Merge pull request #315 from ahilles107/update_version
Browse files Browse the repository at this point in the history
change default env in console to prod
  • Loading branch information
Paweł Mikołajczuk committed Jun 4, 2013
2 parents 6a7e3a4 + 889041e commit b13f759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newscoop/application/console
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;

$input = new ArgvInput();
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'prod');
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';

$kernel = new AppKernel($env, $debug);
Expand Down

0 comments on commit b13f759

Please sign in to comment.