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

@ -57,19 +57,19 @@ public function server(): BelongsTo
/**
* create database on server
*/
public function createOnServer(): void
public function createOnServer(string $queue = 'ssh'): void
{
dispatch(new CreateOnServer($this))->onConnection('ssh');
dispatch(new CreateOnServer($this))->onConnection($queue);
}
/**
* delete database from server
*/
public function deleteFromServer(): void
public function deleteFromServer(string $queue = 'ssh'): void
{
$this->status = DatabaseStatus::DELETING;
$this->save();
dispatch(new DeleteFromServer($this))->onConnection('ssh');
dispatch(new DeleteFromServer($this))->onConnection($queue);
}
public function backups(): HasMany