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: set deployment failed if new container is not healthy
Andras Bacsai53965ab8edef
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex e23496cd14..be28f3a261 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -1295,6 +1295,9 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");});} else {$this->application_deployment_queue->addLogEntry("New container is not healthy, rolling back to the old container.");+ $this->application_deployment_queue->update([+ 'status' => ApplicationDeploymentStatus::FAILED->value,+ ]);$this->execute_remote_command([executeInDocker($this->deployment_uuid, "docker rm -f $this->container_name >/dev/null 2>&1"), "hidden" => true, "ignore_errors" => true],);