refactor: Update save_environment_variables method to use application's environment_variables instead of environment_variables_preview

This commit is contained in:
Andras Bacsai 2024-06-04 11:25:53 +02:00
parent a157f4f17b
commit 2f321bcfd9

View File

@ -792,7 +792,7 @@ private function save_environment_variables()
$url = str($this->application->fqdn)->replace('http://', '')->replace('https://', '');
$envs->push("COOLIFY_URL={$url}");
}
if ($this->application->environment_variables_preview->where('key', 'COOLIFY_BRANCH')->isEmpty()) {
if ($this->application->environment_variables->where('key', 'COOLIFY_BRANCH')->isEmpty()) {
$envs->push("COOLIFY_BRANCH={$local_branch}");
}
foreach ($sorted_environment_variables as $env) {