diff --git a/castor.php b/castor.php index 07fc8b6..5503f30 100644 --- a/castor.php +++ b/castor.php @@ -37,16 +37,12 @@ function create_default_variables(): array } #[AsTask(description: 'Builds and starts the infrastructure, then install the application (composer, yarn, ...)')] -function start(bool $build = false): void +function start(): void { io()->title('Starting the stack'); generate_certificates(force: false); - if ($build) { - build(); - } else { - pull(); - } + build(); up(profiles: ['default']); // We can't start worker now, they are not installed cache_clear(); install(); diff --git a/infrastructure/docker/docker-compose.builder.yml b/infrastructure/docker/docker-compose.builder.yml index d107259..1ad157f 100644 --- a/infrastructure/docker/docker-compose.builder.yml +++ b/infrastructure/docker/docker-compose.builder.yml @@ -3,7 +3,6 @@ volumes: services: builder: - image: "ghcr.io/jolicode/monologue/builder:${BUILDER_VERSION:-latest}" build: context: services/php target: builder diff --git a/infrastructure/docker/docker-compose.yml b/infrastructure/docker/docker-compose.yml index 84ecb7f..73504b6 100644 --- a/infrastructure/docker/docker-compose.yml +++ b/infrastructure/docker/docker-compose.yml @@ -3,7 +3,6 @@ volumes: services: router: - image: "ghcr.io/jolicode/monologue/router:${ROUTER_VERSION:-latest}" build: context: services/router # cache_to: @@ -23,7 +22,6 @@ services: - default frontend: - image: "ghcr.io/jolicode/monologue/frontend:${FRONTEND_VERSION:-latest}" build: context: services/php target: frontend