Skip to content

Commit

Permalink
Add Makefile command to print logs of specific container.
Browse files Browse the repository at this point in the history
  • Loading branch information
vkaracic committed Jun 7, 2017
1 parent 25e8359 commit f672bc5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ destroy: ## Remove all devstack-related containers, networks, and volumes
logs: ## View logs from containers running in detached mode
docker-compose logs -f

%-logs: ## View the logs of the specified service container
docker-compose logs -f | grep edx.devstack.$*

pull: ## Update Docker images
docker-compose pull

Expand Down
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ following:
make logs
To view the logs of a specific service container run ``make <service>-logs``.
For example to access the logs for Ecommerce, you can run:

.. code:: sh
make ecommerce-logs
To reset your environment and start provisioning from scratch, you can run:

.. code:: sh
Expand Down

0 comments on commit f672bc5

Please sign in to comment.