From a91e9c2fc1af8889732455f235c38f62c1bcc302 Mon Sep 17 00:00:00 2001
From: Tom van Neerijnen <tom@tomvn.com>
Date: Wed, 12 Aug 2015 11:43:39 +0100
Subject: [PATCH] export BUILD_DIR and friends after context change

Anything using theses exported variables should be using them in the new
context rather than the old
---
 bin/compile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/bin/compile b/bin/compile
index 02602382..5a94069d 100755
--- a/bin/compile
+++ b/bin/compile
@@ -55,10 +55,6 @@ TMP_APP_DIR=$CACHE_DIR/tmp_app_dir
 
 bpwatch start compile
 
-
-# We'll need to send these statics to other scripts we `source`.
-export BUILD_DIR CACHE_DIR BIN_DIR PROFILE_PATH
-
 # Syntax sugar.
 source $BIN_DIR/utils
 
@@ -94,6 +90,9 @@ BUILD_DIR=$APP_DIR
 PROFILE_PATH="$BUILD_DIR/.profile.d/python.sh"
 WEBCONCURRENCY_PROFILE_PATH="$BUILD_DIR/.profile.d/python.webconcurrency.sh"
 
+# We'll need to send these statics to other scripts we `source`.
+export BUILD_DIR CACHE_DIR BIN_DIR PROFILE_PATH
+
 # Prepend proper path buildpack use.
 export PATH=$BUILD_DIR/.heroku/python/bin:$BUILD_DIR/.heroku/vendor/bin:$PATH
 export PYTHONUNBUFFERED=1
-- 
GitLab