diff --git a/bin/compile b/bin/compile index 236d63c87cd6b5408eb7d72809f736d74076d2b7..02602382a58f2e2df70701969a6f426feaab5857 100755 --- a/bin/compile +++ b/bin/compile @@ -25,8 +25,6 @@ CACHED_DIRS=".heroku" # Static configurations for virtualenv caches. VIRTUALENV_LOC=".heroku/venv" LEGACY_TRIGGER="lib/python2.7" -PROFILE_PATH="$BUILD_DIR/.profile.d/python.sh" -WEBCONCURRENCY_PROFILE_PATH="$BUILD_DIR/.profile.d/python.webconcurrency.sh" DEFAULT_PYTHON_VERSION="python-2.7.10" DEFAULT_PYTHON_STACK="cedar" @@ -92,6 +90,10 @@ fi ORIG_BUILD_DIR=$BUILD_DIR BUILD_DIR=$APP_DIR +# Set up outputs under new context +PROFILE_PATH="$BUILD_DIR/.profile.d/python.sh" +WEBCONCURRENCY_PROFILE_PATH="$BUILD_DIR/.profile.d/python.webconcurrency.sh" + # Prepend proper path buildpack use. export PATH=$BUILD_DIR/.heroku/python/bin:$BUILD_DIR/.heroku/vendor/bin:$PATH export PYTHONUNBUFFERED=1