temporary fix

This commit is contained in:
Andras Bacsai 2023-08-24 21:34:24 +02:00
parent 0a2d0da36f
commit 746da1a76e

View File

@ -22,8 +22,13 @@ public function handle()
{
try {
$container_name = 'coolify-proxy';
$servers = Server::all()->whereRelation('settings', 'is_reachable', true)->whereRelation('settings', 'is_usable', true)->whereNotNull('proxy')->get();
$servers = Server::all();
foreach ($servers as $server) {
if (
$server->settings->is_reachable === false || $server->settings->is_usable === false
) {
continue;
}
$status = getContainerStatus(server: $server, container_id: $container_name);
if ($status === 'running') {
continue;