From fe21907d48ea5d3152e391ad5f1470bf493069cd Mon Sep 17 00:00:00 2001 From: Morton Jonuschat Date: Thu, 19 Feb 2015 00:12:15 +0100 Subject: [PATCH] Update the buildpack to conform to the latest Heroku API Heroku has deprecated the config_vars key in .release a long time ago and recommends settings config vars using a shell script in `.profile.d`. This patch updates `bin/compile` to create the recommended file and removes the config_vars key from the `.release` file. --- bin/compile | 6 ++++++ bin/release | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/compile b/bin/compile index e21c7aa..0a9d5d5 100755 --- a/bin/compile +++ b/bin/compile @@ -106,6 +106,12 @@ else cp -r $CACHE_DIR/bin/* $BUILD_DIR/nginx/ fi +# Update the PATH +mkdir -p $BUILD_DIR/.profile.d +cat > $BUILD_DIR/.profile.d/nginx.sh <<"EOF" +export PATH="$PATH:$HOME/nginx" +EOF + cd $CUR_DIR # build nginx config unless overridden by user diff --git a/bin/release b/bin/release index ae45a02..8849bd3 100755 --- a/bin/release +++ b/bin/release @@ -5,8 +5,6 @@ cat <