Skip to content

Commit

Permalink
Merge pull request #523 from stayallive/patch-1
Browse files Browse the repository at this point in the history
[2.0] Set the Horizon environment via command option
  • Loading branch information
taylorotwell authored Feb 27, 2019
2 parents 0024901 + a728607 commit 655332d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/HorizonCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class HorizonCommand extends Command
*
* @var string
*/
protected $signature = 'horizon';
protected $signature = 'horizon {--environment= : The environment name}';

/**
* The console command description.
Expand Down Expand Up @@ -47,7 +47,7 @@ public function handle(MasterSupervisorRepository $masters)
});

ProvisioningPlan::get(MasterSupervisor::name())->deploy(
config('horizon.env') ?? config('app.env')
$this->option('environment') ?? config('horizon.env') ?? config('app.env')
);

$this->info('Horizon started successfully.');
Expand Down

0 comments on commit 655332d

Please sign in to comment.