Skip to content

Commit

Permalink
Add some more logging when vervose
Browse files Browse the repository at this point in the history
  • Loading branch information
productiveme committed Oct 8, 2022
1 parent 811de11 commit 32c0143
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ set -e
# debug verbosely.
#set -x

echo "BUILD_DIR=${1}"
echo "CACHE_DIR=${2}"
echo "ENV_DIR=${3}"
if [ -n "$BUILDPACK_VERBOSE" ]; then
echo "BUILD_DIR=${1}"
echo "CACHE_DIR=${2}"
echo "ENV_DIR=${3}"

echo "What is in the /app folder now?"
ls /app
echo "What is in the BUILD_DIR now?"
ls $BUILD_DIR
fi

# Load config vars into environment (from https://devcenter.heroku.com/articles/buildpack-api)
export_env_dir() {
Expand Down Expand Up @@ -105,7 +112,7 @@ if [ -e "$METEOR_DIR/.meteor/meteor" ]; then
echo "-----> Existing meteor installation found, using it."
else
echo "-----> Installing meteor"
curl -sS "https://install.meteor.com/?release=$(cat $METEOR_DIR/.meteor/release | sed s/METEOR@//)" | HOME="$METEOR_DIR" /bin/sh
curl -sS "https://install.meteor.com/?release=$(cat $APP_CHECKOUT_DIR/.meteor/release | sed s/METEOR@//)" | HOME="$METEOR_DIR" /bin/sh
fi
# Function to execute meteor with proper HOME.
function METEOR {
Expand Down

0 comments on commit 32c0143

Please sign in to comment.