From 2be8df1228545ae77126787fef68b7c49ea426af Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 18 Feb 2020 01:13:29 -0500 Subject: [PATCH] docs: document the new post-app-rename-setup trigger --- docs/development/plugin-triggers.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/development/plugin-triggers.md b/docs/development/plugin-triggers.md index 6f884fc72..5c90f8dee 100644 --- a/docs/development/plugin-triggers.md +++ b/docs/development/plugin-triggers.md @@ -742,6 +742,22 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x # TODO ``` +### `post-app-rename-setup` + +- Description: Allows you to run commands after an app is setup, and before it is rebuild. This is useful for cleaning up tasks, or ensuring configuration from an old app is copied to the new app +- Invoked by: `dokku apps:rename` +- Arguments: `$OLD_APP_NAME $NEW_APP_NAME` +- Example: + +```shell +#!/usr/bin/env bash + +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x + +# TODO + +``` + ### `post-build-buildpack` - Description: Allows you to run commands after the build image is create for a given app. Only applies to apps using buildpacks.