deploy Wordpress sites via VitoDeploy (#83)

This commit is contained in:
Saeed Vaziry
2024-01-01 16:20:57 +01:00
committed by GitHub
parent 5e6d338bdc
commit 4cda14f4b8
31 changed files with 443 additions and 292 deletions

View File

@ -2,7 +2,6 @@
namespace App\Http\Livewire\Sites;
use App\Enums\SiteType;
use App\Exceptions\SourceControlIsNotConnected;
use App\Models\Server;
use App\Models\SourceControl;
@ -16,23 +15,12 @@ class CreateSite extends Component
public Server $server;
public string $type = SiteType::LARAVEL;
public string $domain;
public string $alias;
public string $php_version = '';
public string $web_directory = 'public';
public string $source_control = '';
public string $repository;
public string $branch;
public bool $composer;
public array $inputs = [
'type' => '',
'web_directory' => 'public',
'source_control' => '',
'php_version' => '',
];
/**
* @throws SourceControlIsNotConnected
@ -41,7 +29,7 @@ public function create(): void
{
$site = app(\App\Actions\Site\CreateSite::class)->create(
$this->server,
$this->all()
$this->inputs
);
$this->redirect(route('servers.sites.show', [