mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 16:02:34 +00:00
fix githook deletion
This commit is contained in:
@ -118,6 +118,11 @@ public static function boot(): void
|
||||
$site->ssls()->delete();
|
||||
$site->deployments()->delete();
|
||||
$site->deploymentScript()->delete();
|
||||
try {
|
||||
$site->gitHook?->destroyHook();
|
||||
} catch (FailedToDestroyGitHook) {
|
||||
$site->refresh()->gitHook?->delete();
|
||||
}
|
||||
});
|
||||
|
||||
static::created(function (Site $site): void {
|
||||
|
Reference in New Issue
Block a user