fix: Disable Sentinel temporarily for non-dev environments

This commit is contained in:
Andras Bacsai
2024-10-24 12:50:07 +02:00
parent 9a227dbad6
commit 96ea755a53

View File

@@ -9,10 +9,12 @@ class StartSentinel
{
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).
return;
if (! $is_dev) {
return;
}
$version = get_latest_sentinel_version();
if ($server->isSwarm() || $server->isBuildServer()) {
return;