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.

Add deployment logs button to Telegram notification

Andras Bacsai51423394ba63
diff --git a/app/Notifications/Application/DeploymentFailed.php b/app/Notifications/Application/DeploymentFailed.php
index a379cd46f4..2d8ae381a6 100644
--- a/app/Notifications/Application/DeploymentFailed.php
+++ b/app/Notifications/Application/DeploymentFailed.php
@@ -84,11 +84,14 @@ class DeploymentFailed extends Notification implements ShouldQueue
} else {
$message = 'Coolify: Deployment failed of **' . $this->application_name . '** (' . $this->fqdn . '): ';
}
+ $buttons[] = [
+ "text" => "Deployment logs",
+ "url" => $this->deployment_url
+ ];
return [
"message" => $message,
"buttons" => [
- "text" => "View Deployment Logs",
- "url" => $this->deployment_url
+ ...$buttons
],
];
}