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: ssh

Andras Bacsaia613e9f113d5
diff --git a/app/Jobs/ExecuteCoolifyProcess.php b/app/Jobs/ExecuteCoolifyProcess.php
index d1ba2c478f..9c9a107712 100755
--- a/app/Jobs/ExecuteCoolifyProcess.php
+++ b/app/Jobs/ExecuteCoolifyProcess.php
@@ -53,10 +53,10 @@ class ExecuteCoolifyProcess implements ShouldQueue
$delimiter = 'EOF-COOLIFY-SSH';
- File::chmod(base_path('coolify_id25519'), '0600');
+ File::chmod(base_path('coolify_id25519'), 0600);
$sshCommand = 'ssh '
- . '-i ./coolify_id25519'
+ . '-i ./coolify_id25519 '
. '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null '
. '-o PasswordAuthentication=no '
. "{$user}@{$destination} "
@@ -78,12 +78,14 @@ class ExecuteCoolifyProcess implements ShouldQueue
return $res;
}
+
// TODO Why is this not persisting?? Immutable property??
$this->activity->properties->put('pid', $process->id());
$this->activity->properties->put('exitCode', $res->exitCode());
$this->activity->properties->put('stdout', $res->output());
$this->activity->properties->put('stderr', $res->errorOutput());
$this->activity->save();
+ return $res;
}
protected function handleOutput(string $type, string $output)