From 07c9db9b54ea746ce65aa0b57f03eb7634ba44af Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 20 Mar 2024 16:41:10 +0100 Subject: [PATCH] fix: shared env variable parsing --- app/Jobs/ApplicationDeploymentJob.php | 8 ++++---- config/sentry.php | 2 +- config/version.php | 2 +- versions.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php index 1346a6ded..a27800ee3 100644 --- a/app/Jobs/ApplicationDeploymentJob.php +++ b/app/Jobs/ApplicationDeploymentJob.php @@ -1367,7 +1367,7 @@ private function generate_environment_variables($ports) // Old environment variables are not escaped, because it could break the application // as the application could expect the unescaped value. if ($env->version === '4.0.0-beta.239') { - $real_value = $env->value; + $real_value = $env->real_value; } else { $real_value = escapeEnvVariables($env->real_value); } @@ -1375,7 +1375,7 @@ private function generate_environment_variables($ports) } foreach ($this->application->nixpacks_environment_variables as $env) { if ($env->version === '4.0.0-beta.239') { - $real_value = $env->value; + $real_value = $env->real_value; } else { $real_value = escapeEnvVariables($env->real_value); } @@ -1384,7 +1384,7 @@ private function generate_environment_variables($ports) } else { foreach ($this->application->runtime_environment_variables_preview as $env) { if ($env->version === '4.0.0-beta.239') { - $real_value = $env->value; + $real_value = $env->real_value; } else { $real_value = escapeEnvVariables($env->real_value); } @@ -1392,7 +1392,7 @@ private function generate_environment_variables($ports) } foreach ($this->application->nixpacks_environment_variables_preview as $env) { if ($env->version === '4.0.0-beta.239') { - $real_value = $env->value; + $real_value = $env->real_value; } else { $real_value = escapeEnvVariables($env->real_value); } diff --git a/config/sentry.php b/config/sentry.php index 5d46ba7f3..b4c1aa5f4 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.240', + 'release' => '4.0.0-beta.241', // 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 c7e1008fc..f00cd2d57 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@