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
Update app/Livewire/Project/Application/Deployment/Show.php
Andras Bacsai0dfc74ca5a56
diff --git a/app/Livewire/Project/Application/Deployment/Show.php b/app/Livewire/Project/Application/Deployment/Show.phpindex e3756eab29..87f7cff8ae 100644--- a/app/Livewire/Project/Application/Deployment/Show.php+++ b/app/Livewire/Project/Application/Deployment/Show.php@@ -64,10 +64,15 @@ class Show extends Componentpublic function toggleDebug(){- $this->application->settings->is_debug_enabled = ! $this->application->settings->is_debug_enabled;- $this->application->settings->save();- $this->is_debug_enabled = $this->application->settings->is_debug_enabled;- $this->application_deployment_queue->refresh();+ try {+ $this->authorize('update', $this->application);+ $this->application->settings->is_debug_enabled = ! $this->application->settings->is_debug_enabled;+ $this->application->settings->save();+ $this->is_debug_enabled = $this->application->settings->is_debug_enabled;+ $this->application_deployment_queue->refresh();+ } catch (\Throwable $e) {+ return handleError($e, $this);+ }}public function refreshQueue()