Skip to content

Commit

Permalink
fix: change check env condition
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuftaufiq committed Jun 3, 2022
1 parent 8e78f80 commit efd4452
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/ide-helper
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use Haemanthus\CodeIgniter3IdeHelper\Application;
use Haemanthus\CodeIgniter3IdeHelper\Commands\GenerateHelperCommand;
use Haemanthus\CodeIgniter3IdeHelper\Commands\StartVarDumperCommand;
use Haemanthus\CodeIgniter3IdeHelper\Providers\AppServiceProvider;
use Silly\Application as SillyApplication;

define('ENVIRONMENT', getenv('IDE_HELPER_ENV') ?: 'production');

Expand All @@ -30,7 +29,7 @@ $container = AppServiceProvider::container();
/** @var Application */
$app = $container->get(Application::class);

if (ENVIRONMENT !== 'production') {
if (ENVIRONMENT === 'development') {
$app->addCommand($container->get(StartVarDumperCommand::class));
}

Expand Down

0 comments on commit efd4452

Please sign in to comment.