Files
dokku/plugins/00_dokku-standard/commands
T
Alexander 6ead1ab943 Fix that only the output the last plugin command is shown
Plugin "commands" should end with "cat" because the output of each
plugin's command is piped through the next one by pluginhook
2013-08-19 21:22:18 +02:00

16 lines
238 B
Bash
Executable File

#!/bin/bash
set -e; case "$1" in
logs)
CONTAINER=$(</home/git/$2/CONTAINER)
docker logs $CONTAINER | tail -n 100
;;
help)
cat && cat<<EOF
logs <app> Show the last logs for an application
EOF
;;
esac
cat