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 variable sorting by key
Andras Bacsaia2e889587e70
diff --git a/resources/views/livewire/project/edit.blade.php b/resources/views/livewire/project/edit.blade.phpindex 56806d287b..c8fd27f9cc 100644--- a/resources/views/livewire/project/edit.blade.php+++ b/resources/views/livewire/project/edit.blade.php@@ -27,7 +27,7 @@helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper></div><div class="flex flex-col gap-2">- @forelse ($project->environment_variables->sort()->sortBy('real_value') as $env)+ @forelse ($project->environment_variables->sort()->sortBy('key') as $env)<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}":env="$env" type="project" />@emptydiff --git a/resources/views/livewire/project/environment-edit.blade.php b/resources/views/livewire/project/environment-edit.blade.phpindex 5418c50363..02fbb1c690 100644--- a/resources/views/livewire/project/environment-edit.blade.php+++ b/resources/views/livewire/project/environment-edit.blade.php@@ -52,7 +52,7 @@helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper></div><div class="flex flex-col gap-2">- @forelse ($environment->environment_variables->sort()->sortBy('real_value') as $env)+ @forelse ($environment->environment_variables->sort()->sortBy('key') as $env)<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}":env="$env" type="environment" />@emptydiff --git a/resources/views/livewire/project/shared/environment-variable/all.blade.php b/resources/views/livewire/project/shared/environment-variable/all.blade.phpindex 951f53e614..d698b6350d 100644--- a/resources/views/livewire/project/shared/environment-variable/all.blade.php+++ b/resources/views/livewire/project/shared/environment-variable/all.blade.php@@ -16,7 +16,7 @@@endif</div>@if ($view === 'normal')- @forelse ($resource->environment_variables->sort()->sortBy('real_value') as $env)+ @forelse ($resource->environment_variables->sort()->sortBy('key') as $env)<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}":env="$env" :type="$resource->type()" />@empty@@ -27,7 +27,7 @@<h3>Preview Deployments</h3><div>Environment (secrets) variables for Preview Deployments.</div></div>- @foreach ($resource->environment_variables_preview->sort()->sortBy('real_value') as $env)+ @foreach ($resource->environment_variables_preview->sort()->sortBy('key') as $env)<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}":env="$env" :type="$resource->type()" />@endforeachdiff --git a/resources/views/livewire/team-shared-variables-index.blade.php b/resources/views/livewire/team-shared-variables-index.blade.phpindex 640913f1fe..9f8a709f03 100644--- a/resources/views/livewire/team-shared-variables-index.blade.php+++ b/resources/views/livewire/team-shared-variables-index.blade.php@@ -12,7 +12,7 @@</div><div class="flex flex-col gap-2">- @forelse ($team->environment_variables->sort()->sortBy('real_value') as $env)+ @forelse ($team->environment_variables->sort()->sortBy('key') as $env)<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}":env="$env" type="team" />@empty