7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-05-29 04:10:49 +00:00

Add logging commands

This commit is contained in:
Régis Behmo 2018-09-29 18:01:08 +02:00
parent 6307a1888e
commit 1357311be7
2 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,6 @@
# Changelog
- 2018-09-29 [Improvement] Add logging commands
- 2018-09-29 [Improvement] Add self-documented help with "make help"
- 2018-09-29 [Feature] Add [Portainer](https://portainer.io) as an optional web UI to administer docker containers
- 2018-09-15 [Feature] Add student notes as an optional feature

View File

@ -123,6 +123,16 @@ info: ## Print some information about the current install, for debugging
echo $$EDX_PLATFORM_PATH
echo $$EDX_PLATFORM_SETTINGS
#################### Logging
logs: ## Print all logs from a service since it started. E.g: "make logs service=lms", "make logs service=nginx"
$(DOCKER_COMPOSE) logs $(service)
tail: ## Similar to "tail" on the logs of a service. E.g: "make tail service=lms", "make tail service=nginx"
$(DOCKER_COMPOSE) logs --tail=10 $(service)
tail-follow: ## Similar to "tail -f" on the logs of a service. E.g: "make tail-follow service=lms", "make tail-follow service=nginx"
$(DOCKER_COMPOSE) logs --tail=10 -f $(service)
#################### Docker image building & updating
update: ## Download most recent images