Merge pull request #467 from silasb/fixing-log-tail
Using logs --follow instead of attaching to instance
This commit is contained in:
commit
25f4a81b71
1 file changed
+3
-2
@@ -38,9 +38,10 @@ case "$1" in
|
|||||||
|
|
||||||
if [[ -f "$DOKKU_ROOT/$APP/CONTAINER" ]]; then
|
if [[ -f "$DOKKU_ROOT/$APP/CONTAINER" ]]; then
|
||||||
CONTAINER=$(<$DOKKU_ROOT/$APP/CONTAINER)
|
CONTAINER=$(<$DOKKU_ROOT/$APP/CONTAINER)
|
||||||
docker logs $CONTAINER | tail -n 100
|
|
||||||
if [[ $3 == "-t" ]]; then
|
if [[ $3 == "-t" ]]; then
|
||||||
docker attach $CONTAINER
|
docker logs --follow $CONTAINER
|
||||||
|
else
|
||||||
|
docker logs $CONTAINER | tail -n 100
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Application's container not found"
|
echo "Application's container not found"
|
||||||
|
|||||||
Reference in new issue
Block a user