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.
This commit is contained in:
Morton Jonuschat 2015-02-19 00:12:15 +01:00
parent 56250a7453
commit fe21907d48
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -5,8 +5,6 @@ cat <<EOF
---
addons:
config_vars:
PATH: /usr/local/bin:/usr/bin:/bin:/app/nginx
default_process_types:
web: /app/start_nginx
EOF
EOF