From cf7a2a00d46241feb7049b02b284de80b9d82964 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 1 Jul 2013 13:54:34 +0200 Subject: [PATCH] Add pre-deploy hook Adds a pre-deploy hook passing the name of the app and the image. The hook allows plugins to setup external resources (such as databases) and modify the image (running pre-deployment script from the app) before the application is deployed by dokku. --- dokku | 1 + 1 file changed, 1 insertion(+) diff --git a/dokku b/dokku index b0cbd3e7b..b4d5f4e50 100755 --- a/dokku +++ b/dokku @@ -27,6 +27,7 @@ case "$1" in deploy) APP="$2"; IMAGE="$3" + pluginhook pre-deploy $APP $IMAGE if [[ ! -f "$HOME/$APP/PORT" ]]; then # First deploy id=$(docker run -d -p 5000 -e PORT=5000 $IMAGE /bin/bash -c "/start web")