Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Env var behaviour for cache removal. #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ CACHE_DIR=$2
CACHED_DIRS=".heroku"
WORKING_DIR=$(pwd)

rm -fr $CACHE_DIR
# If PLATFORM is undefined or defined as HEROKU then remove cache directory.
if [[ "${PLATFORM:-HEROKU}" == "HEROKU" ]]; then
rm -fr $CACHE_DIR
fi
mkdir -p $CACHE_DIR

# Versions.
Expand Down Expand Up @@ -101,4 +104,3 @@ fi

cp $ROOT_DIR/conf/mime.types $BUILD_DIR/
cp $BIN_DIR/launch-nginx "$BUILD_DIR/local/sbin"