code improvements

This commit is contained in:
Andras Bacsai
2023-06-30 11:42:59 +02:00
parent 4daa10d38b
commit b370826624
11 changed files with 62 additions and 15 deletions

View File

@@ -309,6 +309,8 @@ COPY --from=$this->build_image_name /app/{$this->application->publish_directory}
$this->application_deployment_queue->update([
'status' => $status,
]);
ray($this->application_deployment_queue)->purple();
ray($this->activity)->purple();
$this->activity->properties = $this->activity->properties->merge([
'status' => $status,
]);

View File

@@ -29,7 +29,7 @@ class InstanceProxyCheckJob implements ShouldQueue
{
try {
$container_name = 'coolify-proxy';
$servers = Server::whereRelation('settings', 'is_reachable', true)->where('proxy->type', ProxyTypes::TRAEFIK_V2)->get();
$servers = Server::whereRelation('settings', 'is_usable', true)->where('proxy->type', ProxyTypes::TRAEFIK_V2)->get();
foreach ($servers as $server) {
$status = get_container_status(server: $server, container_id: $container_name);