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.

async update process

Andras Bacsai46a500f5e5f4
diff --git a/app/Actions/Server/UpdateCoolify.php b/app/Actions/Server/UpdateCoolify.php
index 16a01fb6f7..512c1b380f 100644
--- a/app/Actions/Server/UpdateCoolify.php
+++ b/app/Actions/Server/UpdateCoolify.php
@@ -53,12 +53,12 @@ class UpdateCoolify
private function update()
{
if (isDev()) {
- instant_remote_process([
- "sleep 1"
+ remote_process([
+ "sleep 10"
], $this->server);
return;
}
- instant_remote_process([
+ remote_process([
"curl -fsSL https://cdn.coollabs.io/coolify/upgrade.sh -o /data/coolify/source/upgrade.sh",
"bash /data/coolify/source/upgrade.sh $this->latestVersion"
], $this->server);