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(database): conditionally set started_at only if the database is running
Andras Bacsai5cfe6464aa41
diff --git a/app/Livewire/Project/Database/Heading.php b/app/Livewire/Project/Database/Heading.phpindex a9783d9112..d1da604691 100644--- a/app/Livewire/Project/Database/Heading.php+++ b/app/Livewire/Project/Database/Heading.php@@ -33,7 +33,10 @@ class Heading extends Componentpublic function activityFinished(){try {- $this->database->started_at ??= now();+ // Only set started_at if database is actually running+ if ($this->database->isRunning()) {+ $this->database->started_at ??= now();+ }$this->database->save();if (is_null($this->database->config_hash) || $this->database->isConfigurationChanged()) {