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: deployment should fail on error
Andras Bacsai302f224bc063
diff --git a/app/Actions/RemoteProcess/RunRemoteProcess.php b/app/Actions/RemoteProcess/RunRemoteProcess.phpindex 53e0beb10e..a9aadb09f7 100644--- a/app/Actions/RemoteProcess/RunRemoteProcess.php+++ b/app/Actions/RemoteProcess/RunRemoteProcess.php@@ -71,6 +71,9 @@ class RunRemoteProcess$this->activity->save();+ if ($processResult->exitCode() != 0 && $processResult->errorOutput()) {+ throw new \RuntimeException('Remote command failed');+ }return $processResult;}diff --git a/app/Jobs/DeployApplicationJob.php b/app/Jobs/DeployApplicationJob.phpindex 3e2e867350..223aefa1bb 100644--- a/app/Jobs/DeployApplicationJob.php+++ b/app/Jobs/DeployApplicationJob.php@@ -279,15 +279,13 @@ class DeployApplicationJob implements ShouldQueue'hideFromOutput' => $hideFromOutput,'setStatus' => $setStatus,]);+ $result = $remoteProcess();if ($propertyName) {- $result = $remoteProcess();$this->activity->properties = $this->activity->properties->merge([$propertyName => trim($result->output()),]);$this->activity->save();- } else {- $remoteProcess();}}private function gitImport()