update vhost and bug fix (#87)

This commit is contained in:
Saeed Vaziry
2024-01-05 22:07:45 +01:00
committed by GitHub
parent f120a570e8
commit f06b8f7d20
9 changed files with 140 additions and 4 deletions

View File

@ -0,0 +1 @@
cat /etc/nginx/sites-available/__domain__

View File

@ -0,0 +1,34 @@
<x-card>
<x-slot name="title">{{ __('Update VHost') }}</x-slot>
<x-slot name="description">{{ __("You can change your site's PHP version here") }}</x-slot>
<form
id="update-vhost"
wire:submit.prevent="update"
class="space-y-6"
>
<div>
<x-textarea
id="vHost"
wire:init="loadVHost"
wire:model.defer="vHost"
rows="10"
class="mt-1 block w-full"
></x-textarea>
@error('vHost')
<x-input-error
class="mt-2"
:messages="$message"
/>
@enderror
</div>
</form>
<x-slot name="actions">
<x-primary-button
form="update-vhost"
wire:loading.attr="disabled"
>{{ __('Save') }}</x-primary-button>
</x-slot>
</x-card>

View File

@ -5,6 +5,8 @@
<livewire:sites.update-source-control-provider :site="$site"/>
<livewire:sites.update-v-host :site="$site"/>
<x-card>
<x-slot name="title">{{ __("Delete Site") }}</x-slot>
<x-slot name="description">{{ __("Permanently delete the site from server") }}</x-slot>