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: when to pull image
Andras Bacsaic866213f3451
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex 9c04756103..7851d3fe53 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -1096,21 +1096,19 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");private function start_by_compose_file(){- if (- !$this->application->dockerfile &&- (- $this->application->build_pack === 'dockerimage' ||- $this->application->build_pack === 'dockerfile')- ) {+ if ($this->application->dockerfile || $this->application->build_pack === 'dockerfile') {+ $this->execute_remote_command(+ ["echo -n 'Starting application (could take a while).'"],+ [executeInDocker($this->deployment_uuid, "docker compose --project-directory {$this->workdir} up --build -d"), "hidden" => true],+ );+ } else if ($this->application->build_pack === 'dockerimage') {$this->execute_remote_command(["echo -n 'Pulling latest images from the registry.'"],- [executeInDocker($this->deployment_uuid, "docker compose --project-directory {$this->workdir}"), "hidden" => true],+ [executeInDocker($this->deployment_uuid, "docker compose --project-directory {$this->workdir} pull"), "hidden" => true],+ ["echo -n 'Starting application (could take a while).'"],+ [executeInDocker($this->deployment_uuid, "docker compose --project-directory {$this->workdir} up --build -d"), "hidden" => true],);}- $this->execute_remote_command(- ["echo -n 'Starting application (could take a while).'"],- [executeInDocker($this->deployment_uuid, "docker compose --project-directory {$this->workdir} up --build -d"), "hidden" => true],- );}private function generate_build_env_variables()