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: if usagebefore cannot be determined, cleanup docker with force
Andras Bacsai465b254813e9
diff --git a/app/Jobs/DockerCleanupJob.php b/app/Jobs/DockerCleanupJob.phpindex f99a65b5de..c798cd8077 100644--- a/app/Jobs/DockerCleanupJob.php+++ b/app/Jobs/DockerCleanupJob.php@@ -26,17 +26,6 @@ class DockerCleanupJob implements ShouldBeEncrypted, ShouldQueuepublic function handle(): void{try {- // $isInprogress = false;- // $this->server->applications()->each(function ($application) use (&$isInprogress) {- // if ($application->isDeploymentInprogress()) {- // $isInprogress = true;-- // return;- // }- // });- // if ($isInprogress) {- // throw new RuntimeException('DockerCleanupJob: ApplicationDeploymentQueue is not empty, skipping...');- // }if (! $this->server->isFunctional()) {return;}@@ -48,6 +37,12 @@ class DockerCleanupJob implements ShouldBeEncrypted, ShouldQueue}$this->usageBefore = $this->server->getDiskUsage();+ if ($this->usageBefore === null) {+ Log::info('DockerCleanupJob force cleanup on '.$this->server->name);+ CleanupDocker::run(server: $this->server, force: true);++ return;+ }if ($this->usageBefore >= $this->server->settings->cleanup_after_percentage) {CleanupDocker::run(server: $this->server, force: false);$usageAfter = $this->server->getDiskUsage();