fix(ServerCheck): set default proxy status to 'exited' to handle missing container state
This commit is contained in:
@@ -99,7 +99,7 @@ class ServerCheck
|
|||||||
return data_get($value, 'Name') === '/coolify-proxy';
|
return data_get($value, 'Name') === '/coolify-proxy';
|
||||||
}
|
}
|
||||||
})->first();
|
})->first();
|
||||||
$proxyStatus = data_get($foundProxyContainer, 'State.Status');
|
$proxyStatus = data_get($foundProxyContainer, 'State.Status', 'exited');
|
||||||
if (! $foundProxyContainer || $proxyStatus !== 'running') {
|
if (! $foundProxyContainer || $proxyStatus !== 'running') {
|
||||||
try {
|
try {
|
||||||
$shouldStart = CheckProxy::run($this->server);
|
$shouldStart = CheckProxy::run($this->server);
|
||||||
|
|||||||
Reference in New Issue
Block a user