diff --git a/app/Actions/Server/StartSentinel.php b/app/Actions/Server/StartSentinel.php index 9eaafbd96..ed93b6c60 100644 --- a/app/Actions/Server/StartSentinel.php +++ b/app/Actions/Server/StartSentinel.php @@ -11,6 +11,8 @@ class StartSentinel public function handle(Server $server, bool $restart = false) { + // TODO: Sentinel is not available in this version (soon). + return; $version = get_latest_sentinel_version(); if ($server->isSwarm() || $server->isBuildServer()) { return; diff --git a/app/Models/Server.php b/app/Models/Server.php index b9abc9bb2..64c495fec 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -570,23 +570,6 @@ $schema://$host { return $this->settings->is_sentinel_enabled; } - public function checkServerApi() - { - if ($this->isServerApiEnabled()) { - $server_ip = $this->ip; - if (isDev()) { - if ($this->id === 0) { - $server_ip = 'localhost'; - } - } - $command = "curl -s http://{$server_ip}:12172/api/health"; - $process = Process::timeout(5)->run($command); - if ($process->failed()) { - ray($process->exitCode(), $process->output(), $process->errorOutput()); - throw new \Exception("Server API is not reachable on http://{$server_ip}:12172"); - } - } - } public function checkSentinel() {