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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Fix notification channels in ApplicationDeploymentJob and DeploymentSuccess
Andras Bacsaif70a9c6974be
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex cded183aa8..becf6387a9 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -1651,7 +1651,7 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");if (!$this->only_this_server) {$this->deploy_to_additional_destinations();}- // $this->application->environment->project->team?->notify(new DeploymentSuccess($this->application, $this->deployment_uuid, $this->preview));+ $this->application->environment->project->team?->notify(new DeploymentSuccess($this->application, $this->deployment_uuid, $this->preview));}}diff --git a/app/Notifications/Application/DeploymentSuccess.php b/app/Notifications/Application/DeploymentSuccess.phpindex 0f03885e8a..8a409aa94b 100644--- a/app/Notifications/Application/DeploymentSuccess.php+++ b/app/Notifications/Application/DeploymentSuccess.php@@ -43,7 +43,11 @@ class DeploymentSuccess extends Notification implements ShouldQueuepublic function via(object $notifiable): array{- return setNotificationChannels($notifiable, 'deployments');+ $channels = setNotificationChannels($notifiable, 'deployments');+ $channels = array_filter($channels, function ($channel) {+ return $channel !== 'App\Notifications\Channels\EmailChannel';+ });+ return $channels;}public function toMail(): MailMessage@@ -69,7 +73,7 @@ class DeploymentSuccess extends Notification implements ShouldQueuepublic function toDiscord(): string{if ($this->preview) {- $message = 'Coolify: New PR' . $this->preview->pull_request_id . ' version successfully deployed of ' . $this->application_name . '+ $message = 'Coolify: New PR' . $this->preview->pull_request_id . ' version successfully deployed of ' . $this->application_name . '';if ($this->preview->fqdn) {