fix deployment

This commit is contained in:
Andras Bacsai 2023-06-08 09:31:27 +02:00
parent d01486ce42
commit 815fa538da
4 changed files with 9 additions and 11 deletions

View File

@ -565,13 +565,14 @@ COPY --from=$this->build_image_name /app/{$this->application->publish_directory}
]); ]);
$this->activity->save(); $this->activity->save();
if ($isDebuggable && !$this->application->settings->is_debug_enabled) { if ($isDebuggable && !$this->application->settings->is_debug_enabled) {
ray('Debugging is disabled for this application. Skipping command.');
$hideFromOutput = true; $hideFromOutput = true;
} }
$remote_process = resolve(RunRemoteProcess::class, [ $remote_process = resolve(RunRemoteProcess::class, [
'activity' => $this->activity, 'activity' => $this->activity,
'hideFromOutput' => $hideFromOutput, 'hide_from_output' => $hideFromOutput,
'isFinished' => $isFinished, 'is_finished' => $isFinished,
'ignoreErrors' => $ignoreErrors, 'ingore_errors' => $ignoreErrors,
]); ]);
$result = $remote_process(); $result = $remote_process();
if ($propertyName) { if ($propertyName) {

View File

@ -2,7 +2,7 @@
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<h2>Previews Deployments</h2> <h2>Previews Deployments</h2>
<x-forms.button type="submit">Save</x-forms.button> <x-forms.button type="submit">Save</x-forms.button>
<x-forms.button wire:click="resetToDefault">Reset to default</x-forms.button> <x-forms.button wire:click="resetToDefault">Reset template to default</x-forms.button>
</div> </div>
<div class="pb-4 text-sm">Preview Deployments based on pull requests are here.</div> <div class="pb-4 text-sm">Preview Deployments based on pull requests are here.</div>
<div class="flex flex-col gap-2 pb-4"> <div class="flex flex-col gap-2 pb-4">

View File

@ -3,7 +3,7 @@
<div> <div>
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<h3>Pull Requests on Git</h3> <h3>Pull Requests on Git</h3>
<x-forms.button wire:click="load_prs">Load Pull Requests (open) <x-forms.button wire:click="load_prs">Load (Open) Pull Requests
</x-forms.button> </x-forms.button>
</div> </div>
@isset($rate_limit_remaining) @isset($rate_limit_remaining)

View File

@ -4,9 +4,9 @@
<x-forms.button wire:click='loadImages'>Reload Available Images</x-forms.button> <x-forms.button wire:click='loadImages'>Reload Available Images</x-forms.button>
</div> </div>
<div class="pb-4 text-sm">You can easily rollback to a previously built image quickly.</div> <div class="pb-4 text-sm">You can easily rollback to a previously built image quickly.</div>
<div wire:loading.remove wire:target='loadImages'> <div wire:target='loadImages'>
<div class="flex flex-wrap"> <div class="flex flex-wrap">
@forelse ($images as $image) @foreach ($images as $image)
<div class="w-2/4 p-2"> <div class="w-2/4 p-2">
<div class="rounded shadow-lg bg-coolgray-200"> <div class="rounded shadow-lg bg-coolgray-200">
<div class="p-2"> <div class="p-2">
@ -32,10 +32,7 @@
</div> </div>
</div> </div>
</div> </div>
@empty @endforeach
<div>No images found
</div>
@endforelse
</div> </div>
</div> </div>
</div> </div>