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: installDocker id not found
Andras Bacsaiefa7cab3e29a
diff --git a/app/Actions/Server/InstallDocker.php b/app/Actions/Server/InstallDocker.phpindex 49ea85c6b9..2ddda94a88 100644--- a/app/Actions/Server/InstallDocker.php+++ b/app/Actions/Server/InstallDocker.php@@ -8,7 +8,7 @@ use App\Models\Team;class InstallDocker{- public function __invoke(Server $server, Team $team)+ public function __invoke(Server $server){$dockerVersion = '24.0';$config = base64_encode('{@@ -19,7 +19,7 @@ class InstallDocker}}');$found = StandaloneDocker::where('server_id', $server->id);- if ($found->count() == 0) {+ if ($found->count() == 0 && $server->id) {StandaloneDocker::create(['name' => 'coolify','network' => 'coolify',diff --git a/app/Http/Livewire/Boarding/Index.php b/app/Http/Livewire/Boarding/Index.phpindex 024d1cf44a..dcf7623d0a 100644--- a/app/Http/Livewire/Boarding/Index.php+++ b/app/Http/Livewire/Boarding/Index.php@@ -232,7 +232,7 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==}public function installDocker(){- $activity = resolve(InstallDocker::class)($this->createdServer, currentTeam());+ $activity = resolve(InstallDocker::class)($this->createdServer);$this->emit('newMonitorActivity', $activity->id);$this->currentState = 'select-proxy';}diff --git a/app/Http/Livewire/Server/Form.php b/app/Http/Livewire/Server/Form.phpindex 56cec63da1..cdb00c0a25 100644--- a/app/Http/Livewire/Server/Form.php+++ b/app/Http/Livewire/Server/Form.php@@ -44,7 +44,7 @@ class Form extends Componentpublic function installDocker(){- $activity = resolve(InstallDocker::class)($this->server, currentTeam());+ $activity = resolve(InstallDocker::class)($this->server);$this->emit('newMonitorActivity', $activity->id);}