Skip to content

Commit

Permalink
fix rebuild service command
Browse files Browse the repository at this point in the history
Took 4 minutes
  • Loading branch information
fabio-ivona committed Aug 30, 2021
1 parent a10f3b0 commit ffa582c
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions app/Commands/Rebuild.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit ffa582c

Please sign in to comment.