feat: debuggable executeNow commands

This commit is contained in:
Andras Bacsai
2023-04-14 13:18:55 +02:00
parent 1ba57ef6c3
commit 14919980c2
5 changed files with 42 additions and 23 deletions

View File

@@ -53,6 +53,14 @@ class DeployApplication extends Component
$this->application->status = 'stopped';
$this->application->save();
}
public function kill()
{
runRemoteCommandSync($this->destination->server, ["docker rm -f {$this->application_uuid}"]);
if ($this->application->status != 'exited') {
$this->application->status = 'exited';
$this->application->save();
}
}
public function pollingStatus()
{