temporary fix
This commit is contained in:
parent
0a2d0da36f
commit
746da1a76e
1 changed files with 6 additions and 1 deletions
|
|
@ -22,8 +22,13 @@ public function handle()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$container_name = 'coolify-proxy';
|
$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) {
|
foreach ($servers as $server) {
|
||||||
|
if (
|
||||||
|
$server->settings->is_reachable === false || $server->settings->is_usable === false
|
||||||
|
) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$status = getContainerStatus(server: $server, container_id: $container_name);
|
$status = getContainerStatus(server: $server, container_id: $container_name);
|
||||||
if ($status === 'running') {
|
if ($status === 'running') {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue