Using logs --follow instead of attaching to instance
This commit is contained in:
@@ -40,7 +40,7 @@ case "$1" in
|
|||||||
CONTAINER=$(<$DOKKU_ROOT/$APP/CONTAINER)
|
CONTAINER=$(<$DOKKU_ROOT/$APP/CONTAINER)
|
||||||
docker logs $CONTAINER | tail -n 100
|
docker logs $CONTAINER | tail -n 100
|
||||||
if [[ $3 == "-t" ]]; then
|
if [[ $3 == "-t" ]]; then
|
||||||
docker attach $CONTAINER
|
docker logs --follow $CONTAINER
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Application's container not found"
|
echo "Application's container not found"
|
||||||
|
|||||||
Reference in New Issue
Block a user