docs: clarify usage for multiple apps

This commit is contained in:
Jose Diaz-Gonzalez committed 2018-07-29 19:40:52 -04:00
1 parent 87ee233636
commit db29029653
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -2,7 +2,7 @@
``` ```
logs <app> [-h] [-t] [-n num] [-q] [-p process] # Display recent log output logs <app> [-h] [-t] [-n num] [-q] [-p process] # Display recent log output
logs:failed <app> # Shows the last failed deploy logs for an app logs:failed [<app>] # Shows the last failed deploy logs
``` ```
## Usage ## Usage
@@ -44,3 +44,9 @@ You can retrieve these logs by using the `logs:failed` command
```shell ```shell
dokku logs:failed node-js-app dokku logs:failed node-js-app
``` ```
You can also retrieve the failed logs for each app:
```shell
dokku logs:failed node-js-app
```
+1 -1
View File
@@ -5,7 +5,7 @@ source "$PLUGIN_AVAILABLE_PATH/config/functions"
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
cmd-logs-failed() { cmd-logs-failed() {
declare desc="shows the last failed deploy logs for an app" declare desc="shows the last failed deploy logs"
declare cmd="logs:failed" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1 declare cmd="logs:failed" argv=("$@"); [[ ${argv[0]} == "$cmd" ]] && shift 1
declare APP="$1" declare APP="$1"
local DOKKU_SCHEDULER local DOKKU_SCHEDULER