use same args for remoteProcess and instantRemoteProcess

This commit is contained in:
Andras Bacsai
2023-05-03 09:38:53 +02:00
parent 3e475d87eb
commit ad671cfcf1
7 changed files with 27 additions and 18 deletions

View File

@@ -73,7 +73,7 @@ class Deploy extends Component
}
public function stop()
{
instantRemoteProcess($this->destination->server, ["docker rm -f {$this->application->uuid}"]);
instantRemoteProcess(["docker rm -f {$this->application->uuid}"], $this->destination->server);
if ($this->application->status != 'exited') {
$this->application->status = 'exited';
$this->application->save();