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
Merge branch 'next' into improve-cleanup
Andras Bacsai9a766aedc14e
diff --cc app/Jobs/DockerCleanupJob.phpindex 4874e9670f,a961fae4c3..e326dc671b--- a/app/Jobs/DockerCleanupJob.php+++ b/app/Jobs/DockerCleanupJob.php@@@ -24,18 -23,8 +23,8 @@@ class DockerCleanupJob implements Shoulpublic ?string $usageBefore = null;- public function __construct(public Server $server) {}+ public function __construct(public Server $server, public bool $manualCleanup = false) {}- public function middleware(): array- {- return [new WithoutOverlapping($this->server->id)];- }-- public function uniqueId(): int- {- return $this->server->id;- }-public function handle(): void{try {diff --cc app/Livewire/Server/Form.phpindex a5786038c7,3cb3305b52..38a5725b0e--- a/app/Livewire/Server/Form.php+++ b/app/Livewire/Server/Form.php@@@ -25,14 -24,16 +25,19 @@@ class Form extends Componenpublic $timezones;+ public $delete_unused_volumes = false;+ public $delete_unused_networks = false;+- protected $listeners = [- 'serverInstalled',- 'refreshServerShow' => 'serverInstalled',- 'revalidate' => '$refresh',- ];+ public function getListeners()+ {+ $teamId = auth()->user()->currentTeam()->id;++ return [+ "echo-private:team.{$teamId},CloudflareTunnelConfigured" => 'cloudflareTunnelConfigured',+ 'refreshServerShow' => 'serverInstalled',+ 'revalidate' => '$refresh',+ ];+ }protected $rules = ['server.name' => 'required',@@@ -251,13 -250,11 +262,20 @@@$this->dispatch('success', 'Server timezone updated.');}+ public function manualCleanup()+ {+ try {+ DockerCleanupJob::dispatch($this->server, true);+ $this->dispatch('success', 'Manual cleanup job started. Depending on the amount of data, this might take a while.');+ } catch (\Throwable $e) {+ return handleError($e, $this);+ }+ }+ public function manualCloudflareConfig()+ {+ $this->server->settings->is_cloudflare_tunnel = true;+ $this->server->settings->save();+ $this->server->refresh();+ $this->dispatch('success', 'Cloudflare Tunnels enabled.');+ }}