diff --git a/app/Web/Pages/Servers/Sites/View.php b/app/Web/Pages/Servers/Sites/View.php index 00ea0f8..fb0f5ed 100644 --- a/app/Web/Pages/Servers/Sites/View.php +++ b/app/Web/Pages/Servers/Sites/View.php @@ -116,6 +116,14 @@ private function deployAction(): Action return Action::make('deploy') ->icon('heroicon-o-rocket-launch') ->action(function () { + if (! $this->site->deploymentScript?->content) { + Notification::make() + ->danger() + ->title('Deployment script is not set!') + ->send(); + + return; + } run_action($this, function () { app(Deploy::class)->run($this->site);