Skip to content
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
12 changes: 12 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ if [ -f $ENV_DIR/PROJECT_PATH ]; then
PROJECT_PATH=`cat $ENV_DIR/PROJECT_PATH`
if [ -d $BUILD_DIR/$PROJECT_PATH ]; then
echo "-----> Subdir buildpack in $PROJECT_PATH"

if [ -n "$(ls -A $BUILD_DIR/.profile.d 2>/dev/null)" ]; then
echo " Another buildpack seems to have run"
echo " before the subdir buildpack. This"
echo " may cause unexpected problems."
echo ""
echo " Ensure '$ heroku buildpacks' lists"
echo " the subdir buildpack first and try"
echo " again."
exit 1
fi

echo " creating cache: $CACHE_DIR"
mkdir -p $CACHE_DIR
TMP_DIR=`mktemp -d $CACHE_DIR/subdirXXXXX`
Expand Down