fix(ServerCheck): enhance proxy container check to ensure it is running before proceeding
This commit is contained in:
parent
e516aeb534
commit
eaba726b9c
1 changed files with 2 additions and 1 deletions
|
|
@ -99,7 +99,8 @@ public function handle(Server $server, $data = null)
|
||||||
return data_get($value, 'Name') === '/coolify-proxy';
|
return data_get($value, 'Name') === '/coolify-proxy';
|
||||||
}
|
}
|
||||||
})->first();
|
})->first();
|
||||||
if (! $foundProxyContainer) {
|
$proxyStatus = data_get($foundProxyContainer, 'State.Status');
|
||||||
|
if (! $foundProxyContainer || $proxyStatus !== 'running') {
|
||||||
try {
|
try {
|
||||||
$shouldStart = CheckProxy::run($this->server);
|
$shouldStart = CheckProxy::run($this->server);
|
||||||
if ($shouldStart) {
|
if ($shouldStart) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue