fix consecutive deployment issue (#62)

* fix consecutive deployment issue

* fix styles
This commit is contained in:
Saeed Vaziry
2023-09-29 23:08:56 +02:00
committed by GitHub
parent 1e1204fe40
commit 38e23a1ceb
6 changed files with 27 additions and 38 deletions

View File

@ -266,13 +266,7 @@ public function deploy(): Deployment
}
$deployment->save();
dispatch(
new Deploy(
$deployment,
$this->path,
$this->deployment_script_text
)
)->onConnection('ssh');
dispatch(new Deploy($deployment, $this->path))->onConnection('ssh');
return $deployment;
}