Skip to content

Commit

Permalink
WP-env: Add reference to docker log command to show error logs (#21308)
Browse files Browse the repository at this point in the history
* Add reference to docker log command to show error logs in terminal

* make it clearer that it is the docker container id that is needed to view logs

Co-authored-by: Glen Davies <glen.davies@a8c.com>
  • Loading branch information
glendaviesnz and Glen Davies committed Apr 2, 2020
1 parent 5941c92 commit 1f00c74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/env/README.md
Expand Up @@ -201,6 +201,14 @@ ID user_login display_name user_email user_registered roles
✔ Ran `wp user list` in 'cli'. (in 2s 374ms)
```
### `docker logs -f [container_id] >/dev/null`
```sh
docker logs -f <container_id> >/dev/null

Shows the error logs of the specified container in the terminal. The container_id is the one that is visible with `docker ps -a`
```
## .wp-env.json
You can customize the WordPress installation, plugins and themes that the development environment will use by specifying a `.wp-env.json` file in the directory that you run `wp-env` from.
Expand Down

0 comments on commit 1f00c74

Please sign in to comment.