fix: Disable Sentinel temporarily

This commit is contained in:
Andras Bacsai
2024-10-24 11:35:38 +02:00
parent 70aa61c59e
commit befdb71671
2 changed files with 2 additions and 17 deletions

View File

@@ -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;

View File

@@ -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()
{