mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Add site redirects (#552)
* feat(redirects): add redirects to sites * chore(style): fixed coding style issues * style: fix php-stan docblocks * style: pint cleanup * tests: fixed redirect test suite * feat: vhosts include additional configs * fix: use exact location matching * - add enums - use queues - use vhost rather than separate conf files - vhost formatter - cleanup * generate docs --------- Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
use App\Enums\UserRole;
|
||||
use App\Enums\Webserver;
|
||||
use App\Models\NotificationChannel;
|
||||
use App\Models\Redirect;
|
||||
use App\Models\Server;
|
||||
use App\Models\Site;
|
||||
use App\Models\SourceControl;
|
||||
@ -24,6 +25,8 @@ abstract class TestCase extends BaseTestCase
|
||||
|
||||
protected Site $site;
|
||||
|
||||
protected Redirect $redirect;
|
||||
|
||||
protected NotificationChannel $notificationChannel;
|
||||
|
||||
public const EXPECT_SUCCESS = true;
|
||||
@ -108,6 +111,10 @@ private function setupSite(): void
|
||||
'web_directory' => 'public',
|
||||
'branch' => 'main',
|
||||
]);
|
||||
|
||||
$this->redirect = Redirect::factory()->create([
|
||||
'site_id' => $this->site->id,
|
||||
]);
|
||||
}
|
||||
|
||||
private function setupKeys(): void
|
||||
|
Reference in New Issue
Block a user