Skip to content

Commit 3b2831b

Browse files
committed
add alias for phpunit in the .bashrc
1 parent 7171996 commit 3b2831b

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ The Nginx Log file is stored in the `logs/nginx` directory.
389389
However to view the logs of all the other containers (MySQL, PHP-FPM,...) you can run this:
390390

391391
```bash
392-
docker logs {container-id}
392+
docker logs {container-name}
393393
```
394394

395395

@@ -454,7 +454,7 @@ composer require predis/predis:^1.0
454454
2 - enter any container using:
455455

456456
```bash
457-
docker exec -it {container-name-or-id} bash
457+
docker exec -it {container-name} bash
458458
```
459459
3 - to exit a container, type `exit`.
460460

workspace/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ RUN curl -s http://getcomposer.org/installer | php \
4242
RUN composer.phar global require "laravel/installer" \
4343
&& echo "export PATH='~/.composer/vendor/bin:$PATH'" >> ~/.bashrc
4444

45-
# Source the bashrc to apply updates
45+
# Add an alias for PHPUnit
46+
RUN echo "alias phpunit='./vendor/bin/phpunit'" >> ~/.bashrc
47+
48+
# Source the bash
4649
RUN . ~/.bashrc
4750

4851
# Clean up

0 commit comments

Comments
 (0)