From 98c2056f53e6e5b410ce0ee6d8f52af243f58949 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 17 Apr 2024 12:08:35 +0200 Subject: [PATCH] Fix issue with saving environment variables and update version numbers --- app/Jobs/ApplicationDeploymentJob.php | 8 ++++++++ config/sentry.php | 2 +- config/version.php | 2 +- versions.json | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php index 84fd6efcc..765dde287 100644 --- a/app/Jobs/ApplicationDeploymentJob.php +++ b/app/Jobs/ApplicationDeploymentJob.php @@ -791,6 +791,14 @@ private function save_environment_variables() "echo '{$this->saved_outputs->get('dotenv')->value()}' | tee $this->configuration_dir/.env > /dev/null" ] ); + } else { + $this->execute_remote_command( + [ + "command" => "rm -f $this->configuration_dir/.env", + "hidden" => true, + "ignore_errors" => true + ] + ); } $envs_base64 = base64_encode($envs->implode("\n")); $this->execute_remote_command( diff --git a/config/sentry.php b/config/sentry.php index 9c93ecb67..a1d034f96 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => '4.0.0-beta.259', + 'release' => '4.0.0-beta.260', // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'), diff --git a/config/version.php b/config/version.php index bcab84b3a..ebefe1d03 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@