mirror of
https://github.com/dokku/dokku.git
synced 2025-12-28 16:06:40 +01:00
If passing -t for tail, use logs --follow else just get last 100 lines
This commit is contained in:
@@ -38,9 +38,10 @@ case "$1" in
|
||||
|
||||
if [[ -f "$DOKKU_ROOT/$APP/CONTAINER" ]]; then
|
||||
CONTAINER=$(<$DOKKU_ROOT/$APP/CONTAINER)
|
||||
docker logs $CONTAINER | tail -n 100
|
||||
if [[ $3 == "-t" ]]; then
|
||||
docker logs --follow $CONTAINER
|
||||
else
|
||||
docker logs $CONTAINER | tail -n 100
|
||||
fi
|
||||
else
|
||||
echo "Application's container not found"
|
||||
|
||||
Reference in New Issue
Block a user