Skip to content

Commit

Permalink
Move logging after env is set up
Browse files Browse the repository at this point in the history
  • Loading branch information
productiveme committed Oct 8, 2022
1 parent 32c0143 commit b87dc4e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@ set -e
# debug verbosely.
#set -x

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() {
env_dir=$1
Expand All @@ -36,6 +25,17 @@ export_env_dir() {

export_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

# Enable verbose debugging if configured to -- though this has to come after
# we've loaded environment configs.
if [ -n "$BUILDPACK_VERBOSE" ]; then
Expand Down

0 comments on commit b87dc4e

Please sign in to comment.