Using logs --follow instead of attaching to instance
This commit is contained in:
1 parent
217d00a1bc
commit
75286cdfa1
1 file changed
+1
-1
@@ -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