From 44da7a916cb46e3f50ff76c5db2c65c981527a38 Mon Sep 17 00:00:00 2001 From: Douglas Burke Date: Sat, 20 Aug 2016 17:04:47 -0400 Subject: [PATCH 1/2] Added support for POST_SCRIPT env var --- README.md | 5 +++++ bin/compile | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 31daaa8..7dc224f 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,11 @@ Here are the options Path to an executable, relative to checkout root. If present, this will be chmodded (+x) and ran before anything else. + + POST_SCRIPT + Path to an executable, relative to checkout root. If present, this will be chmodded (+x) and ran after anything else. + + diff --git a/bin/compile b/bin/compile index 296f4c4..3eea395 100755 --- a/bin/compile +++ b/bin/compile @@ -300,3 +300,10 @@ if [ -d $WORKING_HOME/.cabal-sandbox ]; then cp -R $WORKING_HOME/.cabal-sandbox $BUILD_DIR fi +# run user post-script +POST_SCRIPT_FULL="$BUILD_DIR/$POST_SCRIPT" +if [ -f "$POST_SCRIPT_FULL" ]; then + echo "-----> Running POST_SCRIPT: $POST_SCRIPT" + chmod +x $POST_SCRIPT_FULL + $POST_SCRIPT_FULL "$BUILD_DIR" "$CACHE_DIR $ENV_DIR" +fi From bf3d087419d4c8d76fc8ef1730dc727797736759 Mon Sep 17 00:00:00 2001 From: Douglas Burke Date: Sat, 20 Aug 2016 19:25:09 -0400 Subject: [PATCH 2/2] It appears that buildpack-env-arg is no-longer needed. --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 7dc224f..e902131 100644 --- a/README.md +++ b/README.md @@ -101,10 +101,7 @@ git add cabal.config You can change build settings through Heroku environment variables. ```sh -# allow the buildpack to see environment vars -heroku labs:enable buildpack-env-arg - -# then set the variable of your choice +# set the variable of your choice heroku config:set VARIABLE=value ```