Increase command output, update container names
This commit is contained in:
parent
038b15124c
commit
42d96d6a2e
4 changed files with 11 additions and 4 deletions
|
@ -22,11 +22,11 @@ Creates a new PHP development environment and mounts your project files.
|
|||
>
|
||||
> **Required?** ✅
|
||||
>
|
||||
> The name of your Docker containers. Your containers will spin up with the name {name}-{service}-1 i.e.
|
||||
> The name of your Docker containers. Your containers will spin up with the name {name}-{service} i.e.
|
||||
>
|
||||
> `spinner spin:up name=test path=/path`
|
||||
>
|
||||
> Results in containers named `test-php-1` and `test-nginx-1`
|
||||
> Results in containers named `test-php` and `test-nginx`
|
||||
|
||||
> #### Argument: path
|
||||
>
|
||||
|
|
|
@ -6,4 +6,5 @@ services:
|
|||
- ${NGINX_PORT}:80
|
||||
volumes:
|
||||
- ${PROJECT_DIRECTORY}:/var/www/html:cached
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||
container_name: ${PROJECT_NAME}-nginx
|
|
@ -10,4 +10,5 @@ services:
|
|||
volumes:
|
||||
- ${PROJECT_DIRECTORY}:/var/www/html:cached
|
||||
ports:
|
||||
- ${PHP_PORT}:9003
|
||||
- ${PHP_PORT}:9003
|
||||
container_name: ${PROJECT_NAME}-php
|
|
@ -82,13 +82,18 @@ class SpinCommand extends AbstractSpinnerCommand
|
|||
}
|
||||
|
||||
$this->style->success("Spinning up a new development environment...");
|
||||
|
||||
$this->style->text('Creating project data...');
|
||||
$this->createProjectData($input);
|
||||
$this->style->success('Project data created.');
|
||||
|
||||
$this->style->text('Building Docker images...');
|
||||
$command = $this->buildDockerComposeCommand(sprintf('-p %s up', $input->getArgument('name')));
|
||||
|
||||
passthru($command);
|
||||
|
||||
$this->style->success('Docker images built.');
|
||||
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue