add alias for phpunit in the .bashrc
This commit is contained in:
parent
7171996843
commit
3b2831bf1d
@ -389,7 +389,7 @@ The Nginx Log file is stored in the `logs/nginx` directory.
|
||||
However to view the logs of all the other containers (MySQL, PHP-FPM,...) you can run this:
|
||||
|
||||
```bash
|
||||
docker logs {container-id}
|
||||
docker logs {container-name}
|
||||
```
|
||||
|
||||
|
||||
@ -454,7 +454,7 @@ composer require predis/predis:^1.0
|
||||
2 - enter any container using:
|
||||
|
||||
```bash
|
||||
docker exec -it {container-name-or-id} bash
|
||||
docker exec -it {container-name} bash
|
||||
```
|
||||
3 - to exit a container, type `exit`.
|
||||
|
||||
|
@ -42,7 +42,10 @@ RUN curl -s http://getcomposer.org/installer | php \
|
||||
RUN composer.phar global require "laravel/installer" \
|
||||
&& echo "export PATH='~/.composer/vendor/bin:$PATH'" >> ~/.bashrc
|
||||
|
||||
# Source the bashrc to apply updates
|
||||
# Add an alias for PHPUnit
|
||||
RUN echo "alias phpunit='./vendor/bin/phpunit'" >> ~/.bashrc
|
||||
|
||||
# Source the bash
|
||||
RUN . ~/.bashrc
|
||||
|
||||
# Clean up
|
||||
|
Loading…
Reference in New Issue
Block a user