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: Fix issue with deployment start command in ApplicationDeploymentJob
Andras Bacsaib68199a4825b
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex b67e29f721..b3ca3185fb 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -490,10 +490,10 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue// Start compose fileif ($this->application->settings->is_raw_compose_deployment_enabled) {if ($this->docker_compose_custom_start_command) {+ $this->write_deployment_configurations();$this->execute_remote_command([executeInDocker($this->deployment_uuid, "cd {$this->workdir} && {$this->docker_compose_custom_start_command}"), 'hidden' => true],);- $this->write_deployment_configurations();} else {$this->write_deployment_configurations();$server_workdir = $this->application->workdir();@@ -510,22 +510,21 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue}} else {if ($this->docker_compose_custom_start_command) {+ $this->write_deployment_configurations();$this->execute_remote_command([executeInDocker($this->deployment_uuid, "cd {$this->basedir} && {$this->docker_compose_custom_start_command}"), 'hidden' => true],);- $this->write_deployment_configurations();} else {$command = "{$this->coolify_variables} docker compose";if ($this->env_filename) {$command .= " --env-file {$this->workdir}/{$this->env_filename}";}$command .= " --project-name {$this->application->uuid} --project-directory {$this->workdir} -f {$this->workdir}{$this->docker_compose_location} up -d";- ray($command);+ $this->write_deployment_configurations();$this->execute_remote_command([executeInDocker($this->deployment_uuid, $command), 'hidden' => true],);- $this->write_deployment_configurations();}}@@ -615,14 +614,14 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue$this->server = $this->original_server;}if (str($this->configuration_dir)->isNotEmpty()) {- ray("docker cp {$this->deployment_uuid}:{$this->workdir} {$this->configuration_dir}");$this->execute_remote_command(["mkdir -p $this->configuration_dir",],- [- "rm -rf $this->configuration_dir/{*,.*}",- ],+ // removing this now as we are using docker cp+ // [+ // "rm -rf $this->configuration_dir/{*,.*}",+ // ],["docker cp {$this->deployment_uuid}:{$this->workdir}/. {$this->configuration_dir}",],