fix: Disable Sentinel temporarily
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user