fix(ServerCheck): enhance proxy container check to ensure it is running before proceeding
This commit is contained in:
@@ -99,7 +99,8 @@ class ServerCheck
|
|||||||
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user