From ffa582ce61ede3553a79177696efe2e3d4e8cfa9 Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Mon, 30 Aug 2021 10:29:03 +0200 Subject: [PATCH] fix rebuild service command Took 4 minutes --- app/Commands/Rebuild.php | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/app/Commands/Rebuild.php b/app/Commands/Rebuild.php index bf5fdde..0ad2fa2 100644 --- a/app/Commands/Rebuild.php +++ b/app/Commands/Rebuild.php @@ -53,17 +53,21 @@ public function handle(TerminalService $terminal, DockerService $docker_service) $this->info("Rebuilding service: $service_name"); - return $terminal->execute([ - 'docker-compose', - 'pull', - ]) && $terminal->execute([ - 'docker-compose', - 'up', - '-d', - '--no-deps', - '--build', - $service_name, - ]); + $terminal->execute([ + 'docker-compose', + 'pull', + $service_name, + ]); + $terminal->execute([ + 'docker-compose', + 'up', + '-d', + '--no-deps', + '--build', + $service_name, + ]); + + return 0; } }