Current shell error with edeliver

I’m not building on localhost. Please see what my config file looks like

APP="enterprise"

BUILD_HOST="46.101.30.23"
BUILD_USER="kehinde"
BUILD_AT="/home/kehinde/$APP/builds"

RELEASE_DIR="/home/kehinde/$APP/builds/_build/prod/rel/$APP"

# prevent re-installing node modules; this defaults to "."
GIT_CLEAN_PATHS="_build rel priv/static"

STAGING_HOSTS="46.101.30.23"
STAGING_USER="kehinde"
TEST_AT="/home/kehinde/staging"

PRODUCTION_HOSTS="46.101.30.23"
PRODUCTION_USER="kehinde"
DELIVER_TO="/home/kehinde"

# For *Phoenix* projects, symlink prod.secret.exs to our tmp source
pre_erlang_get_and_update_deps() {
  local _prod_secret_path="/home/kehinde/prod.secret.exs"
  if [ "$TARGET_MIX_ENV" = "prod" ]; then
    __sync_remote "
      ln -sfn '$_prod_secret_path' '$BUILD_AT/config/prod.secret.exs'
    "
  fi
}

pre_erlang_clean_compile() {
    status "Running phoenix.digest"
    __sync_remote "
    [ -f ~/.profile ] && source ~/.profile
    set -e

    cd '$BUILD_AT'
    APP='$APP' MIX_ENV='$TARGET_MIX_ENV' $MIX_CMD phoenix.digest $SILENCE
    "
}