mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2024-11-05 11:48:42 +00:00
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:
parent
56250a7453
commit
fe21907d48
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user