For #313: Do not specify both $APP and $IMAGE for base commands.

As discussed in #313, dokku base commands such as build, release, and
deploy require specifying both `$APP` and `$IMAGE` as arguments where
`IMAGE="app/$APP"`. Thus, the `$IMAGE` parameter is currently redudant.

This patch removes the need to specify `$IMAGE` for these base commands
and is backwards compatible. If, in the future, the base commands expect
and `$IMAGE` different than `app/$APP`, then the `$IMAGE` parameter will
be re-added for those specific commands.
This commit is contained in:
Michael Huynh
2013-11-19 12:50:31 -05:00
parent bd21149e8d
commit 28de3ecaa3
2 changed files with 15 additions and 16 deletions

View File

@@ -49,13 +49,13 @@ config_styled_hash () {
}
config_restart_app() {
APP="$1"; IMAGE="app/$APP"
APP="$1";
echo "-----> Releasing $APP ..."
dokku release $APP $IMAGE
dokku release $APP
echo "-----> Release complete!"
echo "-----> Deploying $APP ..."
dokku deploy $APP $IMAGE
dokku deploy $APP
echo "-----> Deploy complete!"
}