This commit is contained in:
Andras Bacsai
2023-03-31 11:51:04 +02:00
parent e052047b04
commit bb435b082e
3 changed files with 9 additions and 9 deletions

View File

@@ -41,11 +41,11 @@ class DeployApplication extends Component
}
private function execute_in_builder(string $command)
{
if ($this->application->settings->is_debug) {
return $this->command[] = "docker exec {$this->deployment_uuid} bash -c '{$command}'";
} else {
return $this->command[] = "docker exec {$this->deployment_uuid} bash -c '{$command}' > /dev/null 2>&1";
}
return $this->command[] = "docker exec {$this->deployment_uuid} bash -c '{$command}'";
// if ($this->application->settings->is_debug) {
// } else {
// return $this->command[] = "docker exec {$this->deployment_uuid} bash -c '{$command}'";
// }
}
private function start_builder_container()
{
@@ -247,10 +247,9 @@ class DeployApplication extends Component
public function stop()
{
$output = runRemoteCommandSync($this->destination->server, ["docker rm -f {$this->application_uuid} >/dev/null 2>&1"]);
runRemoteCommandSync($this->destination->server, ["docker rm -f {$this->application_uuid} >/dev/null 2>&1"]);
$this->application->status = 'exited';
$this->application->save();
// $this->application->refresh();
}
public function pollingStatus()
{