From da96cdf21efc6864a7f172bf2c143d9ac496f7fb Mon Sep 17 00:00:00 2001 From: Tom van Neerijnen <tom@tomvn.com> Date: Wed, 12 Aug 2015 11:33:06 +0100 Subject: [PATCH] set *PROFILE_PATH after context change PROFILE_PATH and WEBCONCURRENCY_PROFILE_PATH must land in the new build context and so should be set after the new context is created --- bin/compile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/compile b/bin/compile index 236d63c8..02602382 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 -- GitLab