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();
if ($isDebuggable && !$this->application->settings->is_debug_enabled) {
ray('Debugging is disabled for this application. Skipping command.');
$hideFromOutput = true;
}
$remote_process = resolve(RunRemoteProcess::class, [
'activity' => $this->activity,
'hideFromOutput' => $hideFromOutput,
'isFinished' => $isFinished,
'ignoreErrors' => $ignoreErrors,
'hide_from_output' => $hideFromOutput,
'is_finished' => $isFinished,
'ingore_errors' => $ignoreErrors,
]);
$result = $remote_process();
if ($propertyName) {

View File

@ -2,7 +2,7 @@
<div class="flex items-center gap-2">
<h2>Previews Deployments</h2>
<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 class="pb-4 text-sm">Preview Deployments based on pull requests are here.</div>
<div class="flex flex-col gap-2 pb-4">

View File

@ -3,7 +3,7 @@
<div>
<div class="flex items-center gap-2">
<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>
</div>
@isset($rate_limit_remaining)

View File

@ -4,9 +4,9 @@
<x-forms.button wire:click='loadImages'>Reload Available Images</x-forms.button>
</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">
@forelse ($images as $image)
@foreach ($images as $image)
<div class="w-2/4 p-2">
<div class="rounded shadow-lg bg-coolgray-200">
<div class="p-2">
@ -32,10 +32,7 @@
</div>
</div>
</div>
@empty
<div>No images found
</div>
@endforelse
@endforeach
</div>
</div>
</div>