mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-06 07:30:40 +00:00
Add logging commands
This commit is contained in:
parent
6307a1888e
commit
1357311be7
@ -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
|
||||
|
10
Makefile
10
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user