Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

send notification of autoupdate

Andras Bacsai7e37068fc015
diff --git a/app/Actions/Server/UpdateCoolify.php b/app/Actions/Server/UpdateCoolify.php
index 8f81852d86..60d0f9a73c 100644
--- a/app/Actions/Server/UpdateCoolify.php
+++ b/app/Actions/Server/UpdateCoolify.php
@@ -42,10 +42,12 @@ class UpdateCoolify
}
$this->update();
}
+ send_internal_notification('InstanceAutoUpdateJob done on: ' . $this->server->ip . "(fqdn:{$this->server->fqdn})" . ' to version: ' . $this->latest_version . ' from version: ' . $this->current_version);
return;
- } catch (\Exception $e) {
+ } catch (\Exception $th) {
ray('InstanceAutoUpdateJob failed');
- ray($e->getMessage());
+ ray($th->getMessage());
+ send_internal_notification('InstanceAutoUpdateJob failed: ' . $th->getMessage());
return;
}
}