fix: Disable Sentinel temporarily for non-dev environments
This commit is contained in:
parent
9a227dbad6
commit
96ea755a53
1 changed files with 4 additions and 2 deletions
|
|
@ -9,10 +9,12 @@ class StartSentinel
|
||||||
{
|
{
|
||||||
use AsAction;
|
use AsAction;
|
||||||
|
|
||||||
public function handle(Server $server, bool $restart = false)
|
public function handle(Server $server, bool $restart = false, bool $is_dev = false)
|
||||||
{
|
{
|
||||||
// TODO: Sentinel is not available in this version (soon).
|
// TODO: Sentinel is not available in this version (soon).
|
||||||
return;
|
if (! $is_dev) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$version = get_latest_sentinel_version();
|
$version = get_latest_sentinel_version();
|
||||||
if ($server->isSwarm() || $server->isBuildServer()) {
|
if ($server->isSwarm() || $server->isBuildServer()) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue