Skip to content

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.

fix: update process if server has been renamed

Andras Bacsai374997083153
diff --git a/app/Actions/Server/UpdateCoolify.php b/app/Actions/Server/UpdateCoolify.php
index bdf8275c7b..3203f9b05a 100644
--- a/app/Actions/Server/UpdateCoolify.php
+++ b/app/Actions/Server/UpdateCoolify.php
@@ -16,8 +16,7 @@ class UpdateCoolify
try {
$settings = InstanceSettings::get();
ray('Running InstanceAutoUpdateJob');
- $localhost_name = 'localhost';
- $this->server = Server::where('name', $localhost_name)->first();
+ $this->server = Server::find(0)->first();
if (!$this->server) {
return;
}