add ps:restore to start applications which weren't manually stopped

This commit is contained in:
Kamil Domański
2015-10-26 14:01:27 +01:00
parent b3f44e3f96
commit 6c19414b7a
3 changed files with 32 additions and 1 deletions

8
plugins/ps/post-deploy Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/ps/functions"
APP="$1"
dokku config:set --no-restart $APP RESTORE=1