use ps:restart for config and domains plugins

This commit is contained in:
Michael Hobbs
2015-01-14 15:25:53 -08:00
parent c0028f122b
commit 61e154899b
2 changed files with 2 additions and 28 deletions

View File

@@ -35,26 +35,13 @@ config_styled_hash () {
done <<< "$vars"
}
config_restart_app() {
APP="$1";
if [[ -f "$DOKKU_ROOT/$APP/CONTAINER" ]]; then
echo "-----> Releasing $APP ..."
dokku release $APP
echo "-----> Release complete!"
echo "-----> Deploying $APP ..."
dokku deploy $APP
echo "-----> Deploy complete!"
fi
}
config_write() {
ENV_TEMP="$1"
echo -e "$ENV_TEMP" | sed '/^$/d' | sort > $ENV_FILE_TEMP
if ! cmp -s $ENV_FILE $ENV_FILE_TEMP; then
cp -f $ENV_FILE_TEMP $ENV_FILE
chmod 600 $ENV_FILE
config_restart_app $APP
dokku ps:restart $APP
fi
rm -f $ENV_FILE_TEMP
}