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 cron issues for UI and applications
ayntk-aia0689ca5fc6b
diff --git a/app/Livewire/Project/Shared/ScheduledTask/Executions.php b/app/Livewire/Project/Shared/ScheduledTask/Executions.phpindex 332b400b80..5bd6b4b9b1 100644--- a/app/Livewire/Project/Shared/ScheduledTask/Executions.php+++ b/app/Livewire/Project/Shared/ScheduledTask/Executions.php@@ -34,9 +34,13 @@ class Executions extends Component}if ($this->task->application) {- return $this->task->application->server;+ if ($this->task->application->destination && $this->task->application->destination->server) {+ return $this->task->application->destination->server;+ }} elseif ($this->task->service) {- return $this->task->service->server;+ if ($this->task->service->destination && $this->task->service->destination->server) {+ return $this->task->service->destination->server;+ }}return null;}diff --git a/app/Models/ScheduledTask.php b/app/Models/ScheduledTask.phpindex 81ca6dba53..4641c2a854 100644--- a/app/Models/ScheduledTask.php+++ b/app/Models/ScheduledTask.php@@ -4,6 +4,8 @@ namespace App\Models;use Illuminate\Database\Eloquent\Relations\HasMany;use Illuminate\Database\Eloquent\Relations\HasOne;+use App\Models\Service;+use App\Models\Application;class ScheduledTask extends BaseModel{@@ -31,27 +33,22 @@ class ScheduledTask extends BaseModelpublic function server(){- ray('Entering server() method in ScheduledTask model');-if ($this->application) {- ray('Returning server from application');- $server = $this->application->server;- ray('Returning server from application: '.$server);- return $server;- }- elseif ($this->database) {- ray('Returning server from database');- $server = $this->database->server;- ray('Returning server from database: '.$server);- return $server;+ if ($this->application->destination && $this->application->destination->server) {+ $server = $this->application->destination->server;+ return $server;+ }} elseif ($this->service) {- ray('Returning server from service');- $server = $this->service->server;- ray('Returning server from service: '.$server);- return $server;+ if ($this->service->destination && $this->service->destination->server) {+ $server = $this->service->destination->server;+ return $server;+ }+ } elseif ($this->database) {+ if ($this->database->destination && $this->database->destination->server) {+ $server = $this->database->destination->server;+ return $server;+ }}-- ray('No server found, returning null');return null;}-}\ No newline at end of file+}