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
refactor(environment-variables): simplify application build pack check in environment variable handling
Andras Bacsaic8bc80f4480f
diff --git a/app/Models/EnvironmentVariable.php b/app/Models/EnvironmentVariable.phpindex 5f686de60d..04081fce0e 100644--- a/app/Models/EnvironmentVariable.php+++ b/app/Models/EnvironmentVariable.php@@ -57,7 +57,7 @@ class EnvironmentVariable extends BaseModelif (! $found) {$application = Application::find($environment_variable->resourceable_id);- if ($application && $application->build_pack !== 'dockerfile') {+ if ($application) {ModelsEnvironmentVariable::create(['key' => $environment_variable->key,'value' => $environment_variable->value,diff --git a/resources/views/livewire/project/shared/environment-variable/all.blade.php b/resources/views/livewire/project/shared/environment-variable/all.blade.phpindex a5f0fae90e..a71f88637e 100644--- a/resources/views/livewire/project/shared/environment-variable/all.blade.php+++ b/resources/views/livewire/project/shared/environment-variable/all.blade.php@@ -11,7 +11,7 @@wire:click='switch'>{{ $view === 'normal' ? 'Developer view' : 'Normal view' }}</x-forms.button></div><div>Environment variables (secrets) for this resource. </div>- @if ($this->resourceClass === 'App\Models\Application' && data_get($this->resource, 'build_pack') !== 'dockercompose')+ @if ($resourceClass === 'App\Models\Application' && data_get($resource, 'build_pack') !== 'dockercompose')<div class="w-64 pt-2"><x-forms.checkbox id="is_env_sorting_enabled" label="Sort alphabetically"helper="Turn this off if one environment is dependent on an other. It will be sorted by creation order (like you pasted them or in the order you created them)."