mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 09:51:37 +00:00
fix deploy error without script (#420)
This commit is contained in:
parent
a320e52dbf
commit
ab43dfb2a6
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user