mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
update vhost and bug fix (#87)
This commit is contained in:
1
resources/commands/webserver/nginx/get-vhost.sh
Executable file
1
resources/commands/webserver/nginx/get-vhost.sh
Executable file
@ -0,0 +1 @@
|
||||
cat /etc/nginx/sites-available/__domain__
|
34
resources/views/livewire/sites/update-v-host.blade.php
Normal file
34
resources/views/livewire/sites/update-v-host.blade.php
Normal 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>
|
@ -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>
|
||||
|
Reference in New Issue
Block a user