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: use wasChanged() instead of isDirty() in updated hook
Andras Bacsai3c799df887d9
diff --git a/app/Models/InstanceSettings.php b/app/Models/InstanceSettings.phpindex 1251e146ee..cd1c05de4a 100644--- a/app/Models/InstanceSettings.php+++ b/app/Models/InstanceSettings.php@@ -35,7 +35,7 @@ class InstanceSettings extends Modelprotected static function booted(): void{static::updated(function ($settings) {- if ($settings->isDirty('helper_version')) {+ if ($settings->wasChanged('helper_version')) {Server::chunkById(100, function ($servers) {foreach ($servers as $server) {PullHelperImageJob::dispatch($server);@@ -44,7 +44,7 @@ class InstanceSettings extends Model}// Clear trusted hosts cache when FQDN changes- if ($settings->isDirty('fqdn')) {+ if ($settings->wasChanged('fqdn')) {\Cache::forget('instance_settings_fqdn_host');}});