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.

Re-enable docker container removal in ApplicationDeploymentJob

Andras Bacsai88d6320d088d
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php
index 2dafcee434..e135188a7f 100644
--- a/app/Jobs/ApplicationDeploymentJob.php
+++ b/app/Jobs/ApplicationDeploymentJob.php
@@ -279,13 +279,13 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
} else {
$this->write_deployment_configurations();
}
- // $this->execute_remote_command(
- // [
- // "docker rm -f {$this->deployment_uuid} >/dev/null 2>&1",
- // "hidden" => true,
- // "ignore_errors" => true,
- // ]
- // );
+ $this->execute_remote_command(
+ [
+ "docker rm -f {$this->deployment_uuid} >/dev/null 2>&1",
+ "hidden" => true,
+ "ignore_errors" => true,
+ ]
+ );
$this->execute_remote_command(
[
"docker image prune -f >/dev/null 2>&1",