mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 02:11:36 +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')
|
return Action::make('deploy')
|
||||||
->icon('heroicon-o-rocket-launch')
|
->icon('heroicon-o-rocket-launch')
|
||||||
->action(function () {
|
->action(function () {
|
||||||
|
if (! $this->site->deploymentScript?->content) {
|
||||||
|
Notification::make()
|
||||||
|
->danger()
|
||||||
|
->title('Deployment script is not set!')
|
||||||
|
->send();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
run_action($this, function () {
|
run_action($this, function () {
|
||||||
app(Deploy::class)->run($this->site);
|
app(Deploy::class)->run($this->site);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user