Skip to content

Commit 827a411

Browse files
author
Matthew Fisher
committed
feat(builder): inject ENV_DIR into the environment
This is an argument supported by Heroku. See https://devcenter.heroku.com/articles/buildpack-api#bin-compile
1 parent 2558a34 commit 827a411

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rootfs/builder/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ unset DEIS_DEBUG
77
app_dir=/app
88
build_root=/tmp/build
99
cache_root=/tmp/cache
10+
env_root=/tmp/env
1011
buildpack_root=/tmp/buildpacks
1112

1213
mkdir -p $app_dir
1314
mkdir -p $cache_root
15+
mkdir -p $env_root
1416
mkdir -p $buildpack_root
1517
mkdir -p $build_root/.profile.d
1618

@@ -134,7 +136,7 @@ fi
134136

135137
## Buildpack compile
136138

137-
"$selected_buildpack/bin/compile" "$build_root" "$cache_root" | ensure_indent
139+
"$selected_buildpack/bin/compile" "$build_root" "$cache_root" "$env_root" | ensure_indent
138140

139141
"$selected_buildpack/bin/release" "$build_root" "$cache_root" > $build_root/.release
140142

0 commit comments

Comments
 (0)