mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
feat(env): support variable flag directives in developer view (#12349)
This commit is contained in:
@@ -156,8 +156,12 @@
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<form wire:submit="submit" class="p-4">
|
||||
<form wire:submit="submit" class="flex flex-col gap-4 p-4">
|
||||
<x-unsaved-bar action="submit" />
|
||||
<x-callout type="info" title="Note">
|
||||
To make a variable literal, put <code class="font-mono"># coolify: literal</code> directly above
|
||||
its line. Without this line, the flag does not change.
|
||||
</x-callout>
|
||||
<x-forms.textarea canGate="update" :canResource="$resource" rows="20"
|
||||
class="whitespace-pre-wrap" id="variables" wire:model="variables" monospace
|
||||
:label="$variablesLabel" />
|
||||
|
||||
@@ -69,6 +69,8 @@
|
||||
@can('manageEnvironment', $resource)
|
||||
<x-callout type="info" title="Note">
|
||||
Inline comments with space before # (e.g., <code class="font-mono">KEY=value #comment</code>) are stripped.
|
||||
To set flags, put <code class="font-mono"># coolify: literal buildtime=false runtime=false</code>
|
||||
directly above a variable line. Without this line, the flags of a variable do not change.
|
||||
</x-callout>
|
||||
<x-forms.textarea rows="10" class="whitespace-pre-wrap font-sans" id="variables"
|
||||
wire:model="variables" label="Production"></x-forms.textarea>
|
||||
|
||||
Reference in New Issue
Block a user