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 URLs and remove unnecessary command in ApplicationDeploymentJob.php
Andras Bacsai02332ade1b8f
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex 15359f4544..fbf6ef0056 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -1076,7 +1076,7 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");) {$this->execute_remote_command(["echo -n 'Pulling latest images from the registry.'"],- [executeInDocker($this->deployment_uuid, "docker compose --project-directory {$this->workdir} pull"), "hidden" => true],+ [executeInDocker($this->deployment_uuid, "docker compose --project-directory {$this->workdir}"), "hidden" => true],);}$this->execute_remote_command(diff --git a/app/Jobs/ContainerStatusJob.php b/app/Jobs/ContainerStatusJob.phpindex 3b995d7215..c4a6c02b62 100644--- a/app/Jobs/ContainerStatusJob.php+++ b/app/Jobs/ContainerStatusJob.php@@ -255,6 +255,8 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncryptedif ($projectUuid && $serviceUuid && $environmentName) {$url = base_url() . '/project/' . $projectUuid . "/" . $environmentName . "/service/" . $serviceUuid;+ } else {+ $url = null;}$this->server->team->notify(new ContainerStopped($containerName, $this->server, $url));$exitedService->update(['status' => 'exited']);@@ -279,6 +281,8 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncryptedif ($projectUuid && $applicationUuid && $environment) {$url = base_url() . '/project/' . $projectUuid . "/" . $environment . "/application/" . $applicationUuid;+ } else {+ $url = null;}$this->server->team->notify(new ContainerStopped($containerName, $this->server, $url));@@ -302,6 +306,8 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncryptedif ($projectUuid && $applicationUuid && $environmentName) {$url = base_url() . '/project/' . $projectUuid . "/" . $environmentName . "/application/" . $applicationUuid;+ } else {+ $url = null;}$this->server->team->notify(new ContainerStopped($containerName, $this->server, $url));@@ -325,6 +331,8 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncryptedif ($projectUuid && $databaseUuid && $environmentName) {$url = base_url() . '/project/' . $projectUuid . "/" . $environmentName . "/database/" . $databaseUuid;+ } else {+ $url = null;}$this->server->team->notify(new ContainerStopped($containerName, $this->server, $url));}